/translatte

For translating your JSON between languages

Primary LanguagePythonMIT LicenseMIT

translatte

For translating your JSON between languages, applies the Google Translate API to every string value, recursively through the entire file -has no effect on keys

Requirements:

  • gCloud CLI needs to be initialized.
  • Translation API needs to be enabled.
  • settings.toml copy and alter it: cp settings.toml.example settings.toml

You do not need to set the Google Cloud Platform project id, script will default to the one set at initialization.

Used on Reactive-Resume to translate from English to Icelandic:

    from_path = "./Reactive-Resume/client/public/locales/en"
    to_path = "./Reactive-Resume/client/public/locales/is"
    from_lang = 'en-US'
    to_lang = 'is-IS'