diff --git a/desktop/CHANGELOG.md b/desktop/CHANGELOG.md index 0e6994feaa..00d6b95277 100644 --- a/desktop/CHANGELOG.md +++ b/desktop/CHANGELOG.md @@ -2,6 +2,7 @@ ## v1.7.3 (Unreleased) +- Support Polish translations. - . ## v1.7.2 diff --git a/web/apps/photos/src/components/Sidebar/Preferences.tsx b/web/apps/photos/src/components/Sidebar/Preferences.tsx index 32c36f991c..5aa7fd9ed5 100644 --- a/web/apps/photos/src/components/Sidebar/Preferences.tsx +++ b/web/apps/photos/src/components/Sidebar/Preferences.tsx @@ -167,5 +167,7 @@ const localeName = (locale: SupportedLocale) => { return "Brazilian Portuguese"; case "ru-RU": return "Russian"; + case "pl-PL": + return "Polish"; } }; diff --git a/web/packages/next/i18n.ts b/web/packages/next/i18n.ts index 9cd5293832..d168d3db43 100644 --- a/web/packages/next/i18n.ts +++ b/web/packages/next/i18n.ts @@ -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"; } }