Do you have a directory full of i18n files, and sometimes you are missing some translations. But you don't see it?
Than this tool can help you to search which ones are missing.
It go through all files, and at the end it gives an overview which one is ok and which translations are missing.
Get it from npm
npm i -D @reibo/check-i18n-files
This will generate a report in the command line
check-i18n-files -d Directory
This will write the values to a csv file
check-i18n-files -d Directory -c
The name of the generated file is i18n
This will read a csv file and save them to the according values The name of the file to read is i18n.
check-i18n-files -d Directory -r
Arguments that can be passed
Argument | What it does |
---|---|
-d or --dir | The directory containing the translation json files |
-c or --csv | Create a csv out of the translated files |
-w or --write | Read the csv and write to json files |
-s or --seperator | Seperator for the csv files, by default ',' |