Update localization catalogs and fill script for Cannot save settings
This commit is contained in:
@@ -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}`);
|
||||
|
||||
@@ -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 "Не удалось сохранить настройки"
|
||||
|
||||
@@ -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 "Не удалось сохранить настройки"
|
||||
|
||||
Reference in New Issue
Block a user