Releases: Saigesp/json-translate
v0.4.4
v0.4.3
v0.4.2
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 withtests/
directory and not running tests
v0.4.1
v0.4.0
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
v0.2.1
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
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
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:
- DeepL integration.
- Preservation of JSON structure.
- Simple and intuitive command line options:
--locale
: Target language to translate the file.--output
: Output file name.--sleep
: Sleep time between API calls.--indent
: Output file indentation spaces.--encoding
: Input & output file encoding.--skip
: Keys (words) to skip in the json file (they won't be translated).--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!