Localizable.strings reader and writer
Project description
Localizablestrings
A simple reader and writer for Localizable.strings files as used by Xcode projects.
Installation
pip install localizablestrings
Usage
from localizablestrings import StringsFile, Translation
sf = StringsFile('/path/to/Localizable.strings')
for translation in sf:
print(f'Key = {translation.key}\nValue = {translation.value}\nComment = {translation.comment}')
if sf.get_translation('spam') is None:
new_translation = Translation(key='spam', value='eggs', comment='Needs more bacon')
sf.add_translation(new_translation)
sf.write()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
localizablestrings-1.2.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for localizablestrings-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d82ebca969b0033432d7766b46559a854f8040b7ea19d6461ba68f86df467998 |
|
MD5 | 77a4ce1aadd20c4e78878461bf56a075 |
|
BLAKE2b-256 | 8cff2d0655b9e994121e150925291a6c7e87282f5384f7282195216d670fb70f |