TeaWeb/shared/generate_translations.sh
WolverinDEV bbc929d46d
Merged translation system (#17)
* A lots of translation changes (Generate translation files)

* Removed auto generated package lock file

* Implementation of the translation system, inc generators.

* improved loader error handling

* Finalizing the translation system.
Needs some tests and a final translation generation.
As well a handy translation mapper or editor would be likely.
May source this out into another project?

* Finalizing the translation system

* Finalized translation system and added polish and turkish google translation

* Finally done :)

* Fixed defautl repositories dosnt show up

* fixed settings not initialized
2018-12-15 14:04:29 +01:00

17 lines
No EOL
444 B
Bash
Executable file

#!/usr/bin/env bash
BASEDIR=$(dirname "$0")
cd "$BASEDIR"
#Generate the script translations
npm run ttsc -- -p $(pwd)/tsconfig/tsconfig.json
if [ $? -ne 0 ]; then
echo "Failed to generate translation file for the script files"
exit 1
fi
npm run trgen -- -f $(pwd)/html/templates.html -d $(pwd)/generated/messages_template.json
if [ $? -ne 0 ]; then
echo "Failed to generate translations file for the template files"
exit 1
fi