diff --git a/web/apps/photos/src/components/Sidebar/Preferences/LanguageSelector.tsx b/web/apps/photos/src/components/Sidebar/Preferences/LanguageSelector.tsx index efcc03a2d..c832be356 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 04986fc63..9f0f2a397 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"; } }