Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

[web] Enable Russian

Manav Rathicc90dd7ba52e
diff --git a/web/apps/photos/src/components/Sidebar/Preferences/LanguageSelector.tsx b/web/apps/photos/src/components/Sidebar/Preferences/LanguageSelector.tsx
index efcc03a2d9..c832be356a 100644
--- a/web/apps/photos/src/components/Sidebar/Preferences/LanguageSelector.tsx
+++ b/web/apps/photos/src/components/Sidebar/Preferences/LanguageSelector.tsx
@@ -27,6 +27,8 @@ export const localeName = (locale: SupportedLocale) => {
return "Español";
case "pt-BR":
return "Brazilian Portuguese";
+ case "ru-RU":
+ return "Russian";
}
};
diff --git a/web/packages/ui/i18n.ts b/web/packages/ui/i18n.ts
index 04986fc632..9f0f2a3970 100644
--- a/web/packages/ui/i18n.ts
+++ b/web/packages/ui/i18n.ts
@@ -31,6 +31,7 @@ export const supportedLocales = [
"nl-NL" /* Dutch */,
"es-ES" /* Spanish */,
"pt-BR" /* Portuguese, Brazilian */,
+ "ru-RU" /* Russian */,
] as const;
/** The type of {@link supportedLocales}. */
@@ -212,6 +213,8 @@ const closestSupportedLocale = (
// We'll never get here (it'd already be an exact match), just kept
// to keep this list consistent.
return "pt-BR";
+ } else if (ls.startsWith("ru")) {
+ return "ru-RU";
}
}