[web] [desktop] Enable Polish translations (#2459)

A big hats off to the person who did 0-99% 🇵🇱 over the weekend!
This commit is contained in:
Manav Rathi
2024-07-15 12:28:16 +05:30
committed by GitHub
3 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
## v1.7.3 (Unreleased)
- Support Polish translations.
- .
## v1.7.2

View File

@@ -167,5 +167,7 @@ const localeName = (locale: SupportedLocale) => {
return "Brazilian Portuguese";
case "ru-RU":
return "Russian";
case "pl-PL":
return "Polish";
}
};

View File

@@ -28,6 +28,7 @@ export const supportedLocales = [
"es-ES" /* Spanish */,
"pt-BR" /* Portuguese, Brazilian */,
"ru-RU" /* Russian */,
"pl-PL" /* Polish */,
] as const;
/** The type of {@link supportedLocales}. */
@@ -224,6 +225,8 @@ const closestSupportedLocale = (
return "pt-BR";
} else if (ls.startsWith("ru")) {
return "ru-RU";
} else if (ls.startsWith("pl")) {
return "pl-PL";
}
}