Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Localizable.strings reader and writer

Project description


A simple reader and writer for Localizable.strings files as used by Xcode projects.


pip install localizablestrings


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')


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for localizablestrings, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size localizablestrings-1.2-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size localizablestrings-1.2.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page