[web] Enable Russian (#1288)

The translation percentage of Russian in crowdin is now 100%, it's time
to enable it as an option in the UI.

A big thank you to the translators ❤️
This commit is contained in:
Manav Rathi 2024-04-02 17:22:15 +05:30 committed by GitHub
commit a7625cd83d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -27,6 +27,8 @@ export const localeName = (locale: SupportedLocale) => {
return "Español";
case "pt-BR":
return "Brazilian Portuguese";
case "ru-RU":
return "Russian";
}
};

View file

@ -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";
}
}