INACTIVE - http://mzl.la/ghe-archive - A node CLI to convert Pontoon's .properties to a single JSON file
Перейти к файлу
Mike Kamermans d6e9efd0d0 update node/npm to secure versions 2017-07-12 12:09:41 -07:00
test/locales Initial commit 2016-08-18 11:22:31 -04:00
.editorconfig Initial commit 2016-08-18 11:22:31 -04:00
.eslintrc.yaml Initial commit 2016-08-18 11:22:31 -04:00
.gitignore Initial commit 2016-08-18 11:22:31 -04:00
LICENSE Add license 2016-08-23 14:41:36 -04:00
README.md Update and rename readme.md to README.md 2017-07-12 12:08:41 -07:00
index.js Update to the way we consume SUPPORTED_LOCALES 2016-08-24 12:36:24 -04:00
package.json update node/npm to secure versions 2017-07-12 12:09:41 -07:00

README.md

Pontoon-to-JSON

A build process CLI tool to convert the locale directory structure and .properties files output by Pontoon to JSON for use in JavaScript based l10n.

Arguments

--src a directory to grab properties from. Defaults to locales at the project root

--dest a directory to output locales.json. Defaults to dist at the project root

Config env

2.x

SUPPORTED_LOCALES a csv string with the locales to convert to json. Example en-US, de, ja. Defaults to *.

1.x

SUPPORTED_LOCALES an array with the locales to convert to json, or a string with a * for all. Example ["en-US", "de", "ja"]. Defaults to *.