Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

[web] Added Italian 🇮🇹 and Lithuanian 🇱🇹 translations

Manav Rathi73f823b21e7f
diff --git a/desktop/CHANGELOG.md b/desktop/CHANGELOG.md
index b96b49f6b2..11a4314f95 100644
--- a/desktop/CHANGELOG.md
+++ b/desktop/CHANGELOG.md
@@ -3,6 +3,7 @@
## v1.7.6 (Unreleased)
- Parse description from metadata JSON.
+- Support Italian and Lithuanian translations.
- .
## v1.7.5
diff --git a/web/apps/photos/src/components/Sidebar/Preferences.tsx b/web/apps/photos/src/components/Sidebar/Preferences.tsx
index dec117fe7e..42eabfae73 100644
--- a/web/apps/photos/src/components/Sidebar/Preferences.tsx
+++ b/web/apps/photos/src/components/Sidebar/Preferences.tsx
@@ -161,5 +161,9 @@ const localeName = (locale: SupportedLocale) => {
return "Russian";
case "pl-PL":
return "Polish";
+ case "it-IT":
+ return "Italiano";
+ case "lt-LT":
+ return "Lietuvių kalba";
}
};
diff --git a/web/packages/base/i18n.ts b/web/packages/base/i18n.ts
index 5067e5fc95..9c842829b7 100644
--- a/web/packages/base/i18n.ts
+++ b/web/packages/base/i18n.ts
@@ -28,6 +28,8 @@ export const supportedLocales = [
"pt-BR" /* Portuguese, Brazilian */,
"ru-RU" /* Russian */,
"pl-PL" /* Polish */,
+ "it-IT" /* Italian */,
+ "lt-LT" /* Lithuanian */,
] as const;
/** The type of {@link supportedLocales}. */
@@ -177,6 +179,10 @@ const closestSupportedLocale = (
return "ru-RU";
} else if (ls.startsWith("pl")) {
return "pl-PL";
+ } else if (ls.startsWith("it")) {
+ return "it-IT";
+ } else if (ls.startsWith("lt")) {
+ return "lt-LT";
}
}