Skip to content

CLI: Converting to JSON

Francesco Novy edited this page Nov 20, 2018 · 1 revision

The converter will turn a given PO into a JSON file to be loaded by the service.

Run the following command from your Ember project root for conversion:

ember l10n:convert --language 'de'

To see all available command line options for the converter script please run:

ember l10n:convert -h

Note that this will also validate the generated JSON file for common syntax errors. For example, it will check if e.g. This is {{description}} is wrongly translated to Das ist die {{Beschreibung}}.

It will print out any found issues to the console. Alternatively, you can specify --validate-throw=ERROR to force the script to abort if an error is found.