Add Ukrainian localization

This commit is contained in:
Olexandr
2026-07-28 12:41:01 +00:00
parent 4e46ba071f
commit 077d2ab941
5 changed files with 6953 additions and 6 deletions
+19 -2
View File
@@ -336,7 +336,7 @@ const KO_COGNATES = [
'Avery L7160 — A4 sheet (38.1 × 63.5 mm × 21)',
'Avery 5160 — US Letter sheet (25.4 × 66.7 mm × 30)',
'EC984C,#6CD4BC,A66EB9,D87694',
'{{weight}}g', // unit suffix format string
'{{weight}} г', // unit suffix format string
'MakerWorld: {{designer}}', // brand + placeholder
'email', // OIDC claim name placeholder
'{{printer}}: {{error}}', // pure placeholders
@@ -379,7 +379,7 @@ const TR_COGNATES = [
'N/A', 'email',
'STARTTLS (Port 587)', 'SSL/TLS (Port 465)',
'({{count}}/8)', 'Hex: #{{hex}}', 'MakerWorld: {{designer}}',
'{{count}} filament', '{{printer}}: {{error}}', '{{weight}}g',
'{{count}} filament', '{{printer}}: {{error}}', '{{weight}} г',
'Filament {{index}} ({{type}})',
'EC984C,#6CD4BC,A66EB9,D87694',
'{{filament}} @ {{temp}}°C', // drying badge: filament code + universal °C
@@ -397,6 +397,22 @@ const RU_COGNATES = [
'(25%, 50%, 75%)',
];
const UK_COGNATES = [
'{{weight}} г',
'MakerWorld: {{designer}}',
'{{printer}}: {{error}}',
'Bambu Cloud',
'Orca Cloud',
'Sport (124%)',
'Ludicrous (166%)',
'email',
'{{name}} — {{stage}} ({{percent}}%) — {{elapsed}}',
'EC984C,#6CD4BC,A66EB9,D87694',
'({{count}}/8)',
'(25%, 50%, 75%)',
'Obico ML API URL',
];
const IDENTICAL_TO_EN_ALLOWED = {
de: new Set(DE_COGNATES),
fr: new Set(FR_COGNATES),
@@ -409,6 +425,7 @@ const IDENTICAL_TO_EN_ALLOWED = {
'zh-TW': new Set(ZH_TW_COGNATES),
tr: new Set(TR_COGNATES),
ru: new Set(RU_COGNATES),
uk: new Set(UK_COGNATES),
};
// Pure comparison logic, exported so tests can verify each failure mode