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.
==================
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.2.tar.gz
(9.0 kB
view details)
File details
Details for the file localizable-0.1.2.tar.gz
.
File metadata
- Download URL: localizable-0.1.2.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
18b4444ff4c4c1bb6a64a9145ff36ab6bad78c26f6a64abd6be8efef1978a801
|
|
MD5 |
967f078acaab2947ed7a87a8b9aaa035
|
|
BLAKE2b-256 |
d83d9ec328461f97cb7fbd41b09160190914dd0d7c3bb9195beadb6518997a8c
|