Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

Enable Catalan locale in web Photos

ashilkn199f02949a21
diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsx
index 4a857a320d..0c191b54c8 100644
--- a/web/apps/photos/src/components/Sidebar.tsx
+++ b/web/apps/photos/src/components/Sidebar.tsx
@@ -1288,6 +1288,8 @@ const localeName = (locale: SupportedLocale) => {
return "Français";
case "de-DE":
return "Deutsch";
+ case "ca-ES":
+ return "Català";
case "zh-CN":
return "中文";
case "nl-NL":
diff --git a/web/packages/base/i18n.ts b/web/packages/base/i18n.ts
index b6b2017c43..412cd95f0b 100644
--- a/web/packages/base/i18n.ts
+++ b/web/packages/base/i18n.ts
@@ -22,6 +22,7 @@ export const supportedLocales = [
"en-US" /* English */,
"fr-FR" /* French */,
"de-DE" /* German */,
+ "ca-ES" /* Catalan */,
"zh-CN" /* Simplified Chinese */,
"nl-NL" /* Dutch */,
"es-ES" /* Spanish */,
@@ -173,6 +174,8 @@ const closestSupportedLocale = (
return "fr-FR";
} else if (ls.startsWith("de")) {
return "de-DE";
+ } else if (ls.startsWith("ca")) {
+ return "ca-ES";
} else if (ls.startsWith("zh")) {
return "zh-CN";
} else if (ls.startsWith("nl")) {