Skip to content

Releases: Saigesp/json-translate

v0.4.4

05 Feb 16:08
e028ded
Compare
Choose a tag to compare

Fix formality level and profanity option fow AWS not working

v0.4.3

14 Jan 19:40
6048286
Compare
Choose a tag to compare

Update DeepL Supported Languages List

v0.4.2

08 Nov 10:00
5532330
Compare
Choose a tag to compare

Some fixes

Fixes AWS required even if not used and files methods not returning Path instances

Related issues fixed:

  • #28 AttributeError: 'str' object has no attribute '_accessor'
  • #26 Getting AWS related errors when attempting to use DeepL

Other issues fixed:

  • pre-commit not calling unittest with tests/ directory and not running tests

v0.4.1

24 Sep 11:30
dc05599
Compare
Choose a tag to compare

Fix: add missing boto3 dependency in requirements.txt

Added boto3==1.28.40 to requirements.txt

v0.4.0

04 Sep 11:16
072186c
Compare
Choose a tag to compare

AWS Translate service & PyPI package

Added the option to use the AWS Translate service instead of DeepL to translate files:

json_translate aws locales/en.json ES

Also, the project has been published in pypi, so it can now be installed directly with pip:

pip install json-translate

v0.3.0

02 Sep 16:11
edaeb69
Compare
Choose a tag to compare

Extend existing files

Added new CLI argument to extend an existing file rather than overriding it:

python json_translate file.json --locale ES --extend

v0.2.1

18 Aug 12:06
423908d
Compare
Choose a tag to compare

Code standardization and best practices

Ruff has been installed and integrated with precommit for code standardization and best practice tracking.

Main rules included:

  • Pycodestyle Errors
  • Pycodestyle Warning
  • Pyflakes
  • Pyupgrade
  • Pydocstyle
  • PEP8 Naming conventions
  • Flake8

v0.2.0

06 Jun 21:15
b433d0c
Compare
Choose a tag to compare

Added glossary support

  • Added optional argument source_locale for setting the source locale as it is required when using a glossary.
  • Added optional argument glossary for setting the glossary ID to be used when translating.

Contribution made by @dotfortun3-code (thanks!)

v0.1.0

03 Jun 11:28
Compare
Choose a tag to compare

v0.1.0 release

json_translate is a simple command-line interface (CLI) tool written in python and designed to streamline the process of translating JSON files.

Usually multi-language projects developed with a javascript framework (Angular, Vue...) base their translations on json files with different nesting levels. This project allows you to generate new files for other languages while keeping the same structure.

Key Features:

  1. DeepL integration.
  2. Preservation of JSON structure.
  3. Simple and intuitive command line options:
    1. --locale: Target language to translate the file.
    2. --output: Output file name.
    3. --sleep: Sleep time between API calls.
    4. --indent: Output file indentation spaces.
    5. --encoding: Input & output file encoding.
    6. --skip: Keys (words) to skip in the json file (they won't be translated).
    7. --log: Display translations as they are being translated.

To get started, please refer to the README.md documentation and usage guide available on our project's GitHub repository. Feel free to provide feedback, report issues, or suggest new features—we appreciate your contribution!