Software Localization Tool.
Project description
Welcome to loc Documentation
loc is a library that simplify the software localization.
Usage:
>>> from loc import LocDict
>>> data = [
{"en-US": "Yes", "zh-CN": "是"},
{"en-US": "No", "zh-CN": "否"},
]
>>> ld = LocDict(data=data)
>>> ld.trans_to("Yes", dst_loc="zh-CN")
是
Install
loc is released on PyPI, so all you need is:
$ pip install loc
To upgrade to latest version:
$ pip install --upgrade loc
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
loc-0.0.2.tar.gz
(12.2 kB
view details)
Built Distribution
loc-0.0.2-py2.py3-none-any.whl
(20.5 kB
view details)
File details
Details for the file loc-0.0.2.tar.gz
.
File metadata
- Download URL: loc-0.0.2.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c49a01faeea17ed58d93f4bb8e077fb710da87dc76a3f2f771891418c52ea32 |
|
MD5 | 03e1f9bb441c8e940974e98ac8deac39 |
|
BLAKE2b-256 | 14df9ee3c947426c91fc86131ed2702cc187520c6c6af2b74788aed6d3940905 |
File details
Details for the file loc-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: loc-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe4a00ff2e178f3bc46c34bf8f9cba7fa85342ffa28d63dd8dee517fc049094 |
|
MD5 | 49398e13f927ebf26d9103ac6bb0c883 |
|
BLAKE2b-256 | 1f8ce0dd00fe49b5a65c9c1848e0fa3a2b3a5e19a850b96340c7981e073bd2f3 |