Skip to content
This repository was archived by the owner on Sep 25, 2023. It is now read-only.

promptlylabs/jsontran

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsontran

Applies i18n translations to json. Should support any valid json

example:

json_dict = {"title": "Hello", "i18n": {"title_pt": "Olá"}}

translate(json_dict, "pt") results in:

{"title": "Olá"}

more examples: see tests

####To run tests:

$ pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages