GitXplorerGitXplorer
j

aem-i18n-convert

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
1438d125e14db4d89476a30071bc8ab9c32e6dff

Fix paths when running from command line

committed 6 years ago
Unverified
af09173bb99bfe267d28fce8c51e9d59de93773b

Merge branch 'release/1.0.3'

committed 6 years ago
Unverified
4dd704ef4c089f9bfa12755f7c5235f7c83f06c9

Merge tag 'v1.0.3' into develop

committed 6 years ago
Unverified
a1bcadec9ed0a18fb75b3a9f391a0603050767f7

Release 1.0.3

committed 6 years ago
Unverified
a74d82f43b3abdda6a985bdb945de763dcf4b493

Ensure unique node names using JcrUtil.createValidName

committed 6 years ago
Unverified
2f50c71e9ced49904736323922b2c6db1fe37f37

Merge tag 'v1.0.2' into develop

committed 6 years ago

README

The README file for this repository.

aem-i18n-convert

Description

Use aem-i18n-convert to convert JSON format dictionaries to sling:MessageEntry format. This is highly beneficial in large production environments with continuously changing keys.

If you're using a sling:MessageEntry format, you can create content packages with specific keys that may need to be rolled into a release, without releasing the whole dictionary (and merging it with production values ahead of time).

If you're using JSON format dictionaries, you will need to either manually add new keys / update existing keys, or merge all of the production values ahead of time (which still leaves a window of time where keys may be updated in production just before you release your updated dictionary).

Keys are automatically sorted alphabetically to make hand merging easier if necessary.

Usage

Convert an AEM i18n dictionary to sling:MessageEntries.
Usage: aem-i18n-convert.js

Options:
  --version    Show version number                                     [boolean]
  -H, --help   Print usage and quit.                                   [boolean]
  -i, --input  i18n json format file

Example

# npm install -g aem-i18n-convert
# aem-i18n-convert --input /path/to/en_us.json > /path/to/apps/project/i18n/mydictionary/en_us.xml