# Language packs ## Generate template files Use the script `npm run template` to geenrate up todate template files for all packs Currently: - CNC GRBL in `languages/cncgrblpack` - CNC grblHAL `languages/cncgrblhalpack` - 3D Printers (all) `languages/printerpack` - Sand Table (all) `languages/sandtablepack` ## Generate language pack files - Rename the template file according the language code http://www.lingoes.net/en/translator/langcode.htm using `_` instead of `-` and add `lang-` in from of name. so for example : - for french language pack, `en.json` file would be renamed to `lang-fr.json` - for simplified chinese language pack, `en.json` file would be renamed to `lang-zh_cn.json` - for simplified chinese language pack, `en.json` file would be renamed to `lang-zh_cn.json` - for german language pack, `en.json` file would be renamed to `lang-de.json` - Modify the language pack file according to the language and test it against the WebUI - Compress the final pack use the following command to compress the final pack targeting the file : `npm run package target=languages//lang-.json` so for French language pack for example: `npm run package target=languages/printerpack/lang-fr.json` ## Compare template pack with language pack file This script is used to compare current language pack content against the template language pack to see if the language pack need to be updated. `npm run check reference=