Skip to main content

Localizable.strings parser for Apple-specific localization files

Project description

python-localizable
==================

Localizable.strings parser for Python

# Usage

Install using pip.

$ pip install localizable

You can either parse a full string directly or pass a file path:

import localizable

strings = localizable.parse_strings(filename='Localizable.strings')
strings = localizable.parse_strings(content="content of .strings file") # this works too

The output format is an array of dictionaries, in order, with the following key/value pairs:

/* Comment */
"Key" = "Value";

* `key`: "Key"
* `value`: "Value"
* `comment`: "Comment"

# License

GPLv2. Adapted from Transifex.

Project details


Download files

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

Source Distribution

localizable-0.1.1.tar.gz (9.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page