瀏覽代碼

Add translated files to git

Bob Mottram 9 年之前
父節點
當前提交
803e4a3b9a
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      translate

+ 2
- 0
translate 查看文件

@@ -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