@datareporter.eu/dr-i18n
v1.0.5
Published
Datareporter I18N workflow module for VUE3
Downloads
2
Readme
I18N Workflow for Datareporter GUI
This is based on the vue-i18n-extract project and extended for operation with our locint i18n server.
Usage:
Commandline / node usage:
node ./bin/dr-i18n.js report --iso='de,en' --vueFiles './tests/fixtures/datareporter/vue/**/*.?(vue)' --languageFiles './tests/fixtures/_tmp' --apiKey 'eb4304a4-8c99-4385-857b-86b718de4488'
- iso: Comma separated list of iso codes to translate
- vueFiles: Path to the vue files to extract the i18n keys (GLOB)
- languageFiles: Path to the translation files (de.json,...) (GLOB)
- apiKey: API Key of the project in our locale server
The command does the following:
- downloads the iso translation files (json) to the languageFiles folder
- searches the vueFiles path for translation keys that are unused or missing
- sends the 'missing' report to the locale server