Skip to content

Translate AEM dictionaries with Yandex Translate service.

Notifications You must be signed in to change notification settings

rzasap/aem-polyglot

 
 

Repository files navigation

http://panda-soft.io

Build Status Coverage Status dependencies Status devDependencies Status JavaScript Style Guide

AEM Polyglot

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.

What's under the hood?

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.

Features

  1. Create new empty dictionaries with create command
  2. Add new dictionaries entries
  3. Sort dictionaries by node keys - will be very usefull in order to maintain conistent dictionaries
  4. Sorting in batch mode - whole directory
  5. Translate single dictionary to other language - including a set of given keys
  6. Translate in batch mode - whole directory

Usage

  1. Get your own Yandex Translate API key
  2. npm install -g aem-polyglot - install the package
  3. aem-polyglot --help - to get the list of commands
  4. aem-polyglot <command> --help - to get details of given <command>

Development

It's pretty simple and standard.

  1. npm install - to install
  2. npm run lint - to run eslint
  3. npm test - to run unit tests
  4. npm run lcov-report - coverage detailed report

About

Translate AEM dictionaries with Yandex Translate service.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%