Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

[web] Enable Ukrainian

Manav Rathi984800379ecd
diff --git a/desktop/CHANGELOG.md b/desktop/CHANGELOG.md
index 11a4314f95..370b787c68 100644
--- a/desktop/CHANGELOG.md
+++ b/desktop/CHANGELOG.md
@@ -3,7 +3,7 @@
## v1.7.6 (Unreleased)
- Parse description from metadata JSON.
-- Support Italian and Lithuanian translations.
+- Support Italian, Ukrainian and Lithuanian translations.
- .
## v1.7.5
diff --git a/web/apps/photos/src/components/Sidebar/Preferences.tsx b/web/apps/photos/src/components/Sidebar/Preferences.tsx
index 17c5da18a3..f133e96a4b 100644
--- a/web/apps/photos/src/components/Sidebar/Preferences.tsx
+++ b/web/apps/photos/src/components/Sidebar/Preferences.tsx
@@ -165,5 +165,7 @@ const localeName = (locale: SupportedLocale) => {
return "Italiano";
case "lt-LT":
return "Lietuvių kalba";
+ case "uk-UA":
+ return "українська";
}
};
diff --git a/web/packages/base/i18n.ts b/web/packages/base/i18n.ts
index 9c842829b7..3e4dc5ca47 100644
--- a/web/packages/base/i18n.ts
+++ b/web/packages/base/i18n.ts
@@ -30,6 +30,7 @@ export const supportedLocales = [
"pl-PL" /* Polish */,
"it-IT" /* Italian */,
"lt-LT" /* Lithuanian */,
+ "uk-UA" /* Ukrainian */,
] as const;
/** The type of {@link supportedLocales}. */
@@ -183,6 +184,8 @@ const closestSupportedLocale = (
return "it-IT";
} else if (ls.startsWith("lt")) {
return "lt-LT";
+ } else if (ls.startsWith("uk")) {
+ return "uk-UA";
}
}