Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: update ar language not found issue. (#2599)

chirag paneliya5994cc135f30
diff --git a/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart b/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart
index e5fe1a3596..c08a60dd2c 100644
--- a/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart
+++ b/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart
@@ -31,7 +31,7 @@ class InitAppWidgetTask extends LaunchTask {
EasyLocalization(
supportedLocales: const [
// In alphabetical order
- Locale('ar', 'AR'),
+ Locale('ar', 'SA'),
Locale('ca', 'ES'),
Locale('de', 'DE'),
Locale('en'),
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/LanguageSelectPopup.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/LanguageSelectPopup.tsx
index 04b31036a9..62968e179a 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/LanguageSelectPopup.tsx
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/LanguageSelectPopup.tsx
@@ -6,6 +6,7 @@ const supportedLanguages: { key: string; title: string }[] = [
key: 'en',
title: 'English',
},
+ { key: 'ar-SA', title: 'ar-SA' },
{ key: 'ca-ES', title: 'ca-ES' },
{ key: 'de-DE', title: 'de-DE' },
{ key: 'es-VE', title: 'es-VE' },
diff --git a/frontend/appflowy_tauri/src/appflowy_app/stores/i18n/initializeI18n.ts b/frontend/appflowy_tauri/src/appflowy_app/stores/i18n/initializeI18n.ts
index 6e4b47f4c1..ba3f75e7f3 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/stores/i18n/initializeI18n.ts
+++ b/frontend/appflowy_tauri/src/appflowy_app/stores/i18n/initializeI18n.ts
@@ -2,6 +2,7 @@ import i18n from 'i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from 'react-i18next';
import en from '../../../../../appflowy_flutter/assets/translations/en.json';
+import ar_SA from '../../../../../appflowy_flutter/assets/translations/ar-SA.json';
import ca_ES from '../../../../../appflowy_flutter/assets/translations/ca-ES.json';
import de_DE from '../../../../../appflowy_flutter/assets/translations/de-DE.json';
import es_VE from '../../../../../appflowy_flutter/assets/translations/es-VE.json';
@@ -29,6 +30,7 @@ export default function () {
.init({
resources: {
en: { translation: en },
+ 'ar-SA': { translation: ar_SA },
'ca-ES': { translation: ca_ES },
'de-DE': { translation: de_DE },
'es-VE': { translation: es_VE },