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

This commit is contained in:
chirag paneliya 2023-06-03 10:06:05 +05:30 committed by GitHub
parent 265177e444
commit 5994cc135f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -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'),

View File

@ -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' },

View File

@ -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 },