Update localization catalogs and fill script for Cannot save settings

This commit is contained in:
Dushnilin
2026-08-12 12:51:16 +03:00
parent cb645cad7a
commit e1a0f04e4a
3 changed files with 18 additions and 2 deletions
+6 -2
View File
@@ -52,8 +52,12 @@ async function run() {
const searchTargetCRLF = `msgid "${key}"\r\nmsgstr ""`;
const replaceWith = `msgid "${key}"\nmsgstr "${val}"`;
content = content.replace(searchTarget, replaceWith);
content = content.replace(searchTargetCRLF, replaceWith);
if (content.includes(`msgid "${key}"`)) {
content = content.replace(searchTarget, replaceWith);
content = content.replace(searchTargetCRLF, replaceWith);
} else {
content += `\nmsgid "${key}"\nmsgstr "${val}"\n`;
}
}
await fs.writeFile(p, content, 'utf8');
console.log(`Updated ${p}`);
+6
View File
@@ -1336,3 +1336,9 @@ msgstr "sing-box outbound для Zapret2 настроен"
msgid "Zapret2 sing-box outbound is not configured"
msgstr "sing-box outbound для Zapret2 не настроен"
msgid "Check YouTube availability"
msgstr "Проверить доступность YouTube"
msgid "Cannot save settings"
msgstr "Не удалось сохранить настройки"
+6
View File
@@ -1336,3 +1336,9 @@ msgstr "sing-box outbound для Zapret2 настроен"
msgid "Zapret2 sing-box outbound is not configured"
msgstr "sing-box outbound для Zapret2 не настроен"
msgid "Check YouTube availability"
msgstr "Проверить доступность YouTube"
msgid "Cannot save settings"
msgstr "Не удалось сохранить настройки"