Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

Enable ar-SA

Manav Rathid880255fc86e
diff --git a/desktop/CHANGELOG.md b/desktop/CHANGELOG.md
index 842dee397a..b41dfd3339 100644
--- a/desktop/CHANGELOG.md
+++ b/desktop/CHANGELOG.md
@@ -3,6 +3,7 @@
## v1.7.12 (Unreleased)
- Improved video player with streaming support (for processed videos).
+- Support Arabic translations.
- .
## v1.7.11
diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsx
index 7090abc84d..b7d5ac9a81 100644
--- a/web/apps/photos/src/components/Sidebar.tsx
+++ b/web/apps/photos/src/components/Sidebar.tsx
@@ -897,6 +897,8 @@ const localeName = (locale: SupportedLocale) => {
return "Tiếng Việt";
case "ja-JP":
return "日本語";
+ case "ar-SA":
+ return "اَلْعَرَبِيَّةُ";
}
};
diff --git a/web/packages/base/i18n.ts b/web/packages/base/i18n.ts
index 6462ff1022..6bbcf3a734 100644
--- a/web/packages/base/i18n.ts
+++ b/web/packages/base/i18n.ts
@@ -34,6 +34,7 @@ export const supportedLocales = [
"uk-UA" /* Ukrainian */,
"vi-VN" /* Vietnamese */,
"ja-JP" /* Japanese */,
+ "ar-SA" /* Arabic */,
] as const;
/** The type of {@link supportedLocales}. */
@@ -195,6 +196,8 @@ const closestSupportedLocale = (
return "vi-VN";
} else if (ls.startsWith("ja")) {
return "ja-JP";
+ } else if (ls.startsWith("ar")) {
+ return "ar-SA";
}
}