|
@@ -80,6 +80,7 @@ function create_translation_files {
|
80
|
80
|
if [ -f /usr/bin/i18next-conv ]; then
|
81
|
81
|
if [ -f locale/${lang}/${COMMAND_NAME}.po ]; then
|
82
|
82
|
i18next-conv -l ${lang} -s locale/${lang}/${COMMAND_NAME}.po -t locale/${lang}/${COMMAND_NAME}.json
|
|
83
|
+ git add locale/${lang}/${COMMAND_NAME}.json
|
83
|
84
|
fi
|
84
|
85
|
fi
|
85
|
86
|
|
|
@@ -102,6 +103,7 @@ function install_translations {
|
102
|
103
|
if [ ! -f locale/${lang}/${COMMAND_NAME}.mo ]; then
|
103
|
104
|
if [ -f locale/${lang}/${COMMAND_NAME}.json ]; then
|
104
|
105
|
i18next-conv -l ${lang} -s locale/${lang}/${COMMAND_NAME}.json -t locale/${lang}/${COMMAND_NAME}.mo
|
|
106
|
+ git add locale/${lang}/${COMMAND_NAME}.mo
|
105
|
107
|
fi
|
106
|
108
|
fi
|
107
|
109
|
fi
|