This tool is designed mainly for developers who are tasked to translate automatically AEM dictionaries into other languages.
Naturally you could use built into AEM a translation project, however this tool can do the job quickly and without a need to even start AEM.
In order to translate entries we are using Yandex Translation API. It's free to use (for smaller quotes) and does not require from a developer nothing more then setting up an account an creation of an API key.
On the other hand Google Translate API enforces user to provide credit card data on the spot in orde to get the key.
- Create new empty dictionaries with
create
command - Add new dictionaries entries
- Sort dictionaries by node keys - will be very usefull in order to maintain conistent dictionaries
- Sorting in batch mode - whole directory
- Translate single dictionary to other language - including a set of given keys
- Translate in batch mode - whole directory
- Get your own Yandex Translate API key
npm install -g aem-polyglot
- install the packageaem-polyglot --help
- to get the list of commandsaem-polyglot <command> --help
- to get details of given<command>
It's pretty simple and standard.
npm install
- to installnpm run lint
- to run eslintnpm test
- to run unit testsnpm run lcov-report
- coverage detailed report