[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:
@@ -2,6 +2,7 @@
|
||||
|
||||
## v1.7.3 (Unreleased)
|
||||
|
||||
- Support Polish translations.
|
||||
- .
|
||||
|
||||
## v1.7.2
|
||||
|
||||
@@ -167,5 +167,7 @@ const localeName = (locale: SupportedLocale) => {
|
||||
return "Brazilian Portuguese";
|
||||
case "ru-RU":
|
||||
return "Russian";
|
||||
case "pl-PL":
|
||||
return "Polish";
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user