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)
s.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.1.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for localizablestrings-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4be628ca61591ae24cd53b0ec497bf16fc57c1df67dbc77070d806555b3d41e9 |
|
MD5 | 62f5c5faf6424ce4654fe41e93fb0898 |
|
BLAKE2b-256 | e6c16f80041bb3dcf4787b025fcda5583ca1fb083a62d1b2d331a26fd9e9ce07 |