feat: support el_GR language (#4922)

This commit is contained in:
Lucas.Xu 2024-03-16 10:53:34 +07:00 committed by GitHub
parent a16196eee5
commit 452974ab99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View File

@ -1,8 +1,5 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:appflowy/mobile/application/mobile_router.dart';
import 'package:appflowy/plugins/document/application/document_appearance_cubit.dart';
import 'package:appflowy/startup/startup.dart';
@ -21,6 +18,8 @@ import 'package:appflowy_editor/appflowy_editor.dart' hide Log;
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra/theme.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:go_router/go_router.dart';
@ -68,6 +67,7 @@ class InitAppWidgetTask extends LaunchTask {
Locale('en'),
Locale('es', 'VE'),
Locale('eu', 'ES'),
Locale('el', 'GR'),
Locale('fr', 'FR'),
Locale('fr', 'CA'),
Locale('hu', 'HU'),

View File

@ -37,6 +37,8 @@ String languageFromLocale(Locale locale) {
return "Español";
case "eu":
return "Euskera";
case "el":
return "Ελληνικά";
case "fr":
switch (locale.countryCode) {
case "CA":

View File

@ -9,6 +9,7 @@
"de-DE",
"es-VE",
"eu-ES",
"el-GR",
"fa",
"fr-CA",
"fr-FR",