浏览代码

InfoPlist.strings function

Ozancan Karataş 5 年之前
父节点
当前提交
4717f2ce0a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tools/convertTranslations.js

+ 2 - 2
tools/convertTranslations.js

@@ -161,8 +161,8 @@ function toInfoPlistStrings(lines) {
         if (!key.startsWith("INFOPLIST.")) {
           continue;
         }
-        key = key.replace('INFOPLIST.', '').replace(/\./gi, ' ').replace(/\_/gi, '-');
-        out += `"${key}" = "${line[1]}";\n`;
+        key = key.replace('INFOPLIST.', '');
+        out += `${key} = "${line[1]}";\n`;
       }
     }
     return out;