loc 0.0.2
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.