Add translated files to git
This commit is contained in:
parent
32097104ea
commit
803e4a3b9a
|
@ -80,6 +80,7 @@ function create_translation_files {
|
||||||
if [ -f /usr/bin/i18next-conv ]; then
|
if [ -f /usr/bin/i18next-conv ]; then
|
||||||
if [ -f locale/${lang}/${COMMAND_NAME}.po ]; then
|
if [ -f locale/${lang}/${COMMAND_NAME}.po ]; then
|
||||||
i18next-conv -l ${lang} -s locale/${lang}/${COMMAND_NAME}.po -t locale/${lang}/${COMMAND_NAME}.json
|
i18next-conv -l ${lang} -s locale/${lang}/${COMMAND_NAME}.po -t locale/${lang}/${COMMAND_NAME}.json
|
||||||
|
git add locale/${lang}/${COMMAND_NAME}.json
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -102,6 +103,7 @@ function install_translations {
|
||||||
if [ ! -f locale/${lang}/${COMMAND_NAME}.mo ]; then
|
if [ ! -f locale/${lang}/${COMMAND_NAME}.mo ]; then
|
||||||
if [ -f locale/${lang}/${COMMAND_NAME}.json ]; then
|
if [ -f locale/${lang}/${COMMAND_NAME}.json ]; then
|
||||||
i18next-conv -l ${lang} -s locale/${lang}/${COMMAND_NAME}.json -t locale/${lang}/${COMMAND_NAME}.mo
|
i18next-conv -l ${lang} -s locale/${lang}/${COMMAND_NAME}.json -t locale/${lang}/${COMMAND_NAME}.mo
|
||||||
|
git add locale/${lang}/${COMMAND_NAME}.mo
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue