mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: update ar language not found issue. (#2599)
This commit is contained in:
parent
265177e444
commit
5994cc135f
@ -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'),
|
||||
|
@ -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' },
|
||||
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user