README
Extract i18n.t translation strings from DHIS2 frontend apps
Install
Extract i18n.t translation strings from DHIS2 frontend apps
<script type="module">
import dhis2D2I18nExtract from 'https://cdn.skypack.dev/@dhis2/d2-i18n-extract';
</script>
Extract i18n.t translation strings from DHIS2 frontend apps
gt; yarn add @dhis2/d2-i18n-extract
gt; d2-i18n-extract -p ./src/ -o ./i18n/
d2-i18n-extract [-h] [-v] [-p PATH] [-o OUTPUT]
Optional arguments:
-h, --help Show this help message and exit.
-v, --version Show program's version number and exit.
-p PATH, --path PATH directory path to recurse and extract i18n.t
translation strings
-o OUTPUT, --output OUTPUT
destination path for en.pot file.