Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

JSON-Translator

Translate json files ignoring {{ expressions }}.

Translate from source language e.g. english

{
   "profile_user_name": "Your name is {{ user.firstname }} and it is {{ user.time }} at your location"
}

To target language e.g. german

{
   "profile_user_name": "Ihr Name ist {{ user.firstname }} und an ihrem Standort ist es {{ user.time }}"
}

Everything inside {{ expressions }} won't get translated.

Installation:

poetry install

Usage:

poetry run translate -s 'example\source_english.json' -d 'example\destination_german.json' -l 'german'

[-s] Path of source file
[-d] Path of destination file
[-l] Target language to translate to

Use [--help] to see list of supported languages.

About

Translate json files ignoring {{ templates }}

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages