Эх сурвалжийг харах

convertTranslations.js: use single backslash in the .strings files

Ozancan Karataş 5 жил өмнө
parent
commit
74570260d8

+ 1 - 1
tools/convertTranslations.js

@@ -189,7 +189,7 @@ function toLocalizableStrings(lines) {
       if (key.startsWith("INFOPLIST.")) {
         continue;
       }
-      let value = line[1].replace(/\\/g, '\\\\').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/"/g, '\\"');
+      let value = line[1].replace(/\\/g, '\\').replace(/\n/g, '\n').replace(/\r/g, '\r').replace(/\t/g, '\t').replace(/"/g, '\"');
       out += `"${key}" = "${value}";`;
     }
     out += '\n';