Skip to content
[DEPRECATED] Generate JSON files compatible with i18next from po/pot files.
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
templates Fix prettier errors which cause yarn start in apps to fail May 22, 2018
.gitignore
README.md
index.js
package.json
yarn.lock

README.md

Install

$> yarn add @dhis2/d2-i18n-generate

Usage

Generate JSON files compatible with i18next from po/pot files.

$> d2-i18n-generate [-h] [-v] [-p PATH] [-o OUTPUT] -n NAMESPACE

Generate JSON files compatible with i18next from po/pot files.

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show version number and exit.
  -p PATH, --path PATH  directory path to find .po/.pot files and convert to 
                        JSON.
  -o OUTPUT, --output OUTPUT
                        Output directory to place converted JSON files.
  -n NAMESPACE, --namespace NAMESPACE
                        Namespace for app. locale separation.
You can’t perform that action at this time.