From 76cdb689fb3abdf4dd31e29696edcb9706cbbaad Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Thu, 27 Oct 2022 14:00:24 +0800 Subject: [PATCH] chore: update language for bn_BN --- .../lib/src/l10n/intl/messages_all.dart | 4 ++ .../lib/src/l10n/intl/messages_bn_BN.dart | 43 +++++++++++++++++++ .../appflowy_editor/lib/src/l10n/l10n.dart | 1 + 3 files changed, 48 insertions(+) create mode 100644 frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/intl/messages_bn_BN.dart diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/intl/messages_all.dart b/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/intl/messages_all.dart index f98e70ad28..16fd7b9b6b 100644 --- a/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/intl/messages_all.dart +++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/intl/messages_all.dart @@ -15,6 +15,7 @@ import 'package:intl/intl.dart'; import 'package:intl/message_lookup_by_library.dart'; import 'package:intl/src/intl_helpers.dart'; +import 'messages_bn_BN.dart' as messages_bn_bn; import 'messages_ca.dart' as messages_ca; import 'messages_cs-CZ.dart' as messages_cs_cz; import 'messages_de-DE.dart' as messages_de_de; @@ -39,6 +40,7 @@ import 'messages_zh-TW.dart' as messages_zh_tw; typedef Future LibraryLoader(); Map _deferredLibraries = { + 'bn_BN': () => new Future.value(null), 'ca': () => new Future.value(null), 'cs_CZ': () => new Future.value(null), 'de_DE': () => new Future.value(null), @@ -64,6 +66,8 @@ Map _deferredLibraries = { MessageLookupByLibrary? _findExact(String localeName) { switch (localeName) { + case 'bn_BN': + return messages_bn_bn.messages; case 'ca': return messages_ca.messages; case 'cs_CZ': diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/intl/messages_bn_BN.dart b/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/intl/messages_bn_BN.dart new file mode 100644 index 0000000000..38e1cae590 --- /dev/null +++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/intl/messages_bn_BN.dart @@ -0,0 +1,43 @@ +// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart +// This is a library that provides messages for a bn_BN locale. All the +// messages from the main program should be duplicated here with the same +// function name. + +// Ignore issues from commonly used lints in this file. +// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new +// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering +// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases +// ignore_for_file:unused_import, file_names, avoid_escaping_inner_quotes +// ignore_for_file:unnecessary_string_interpolations, unnecessary_string_escapes + +import 'package:intl/intl.dart'; +import 'package:intl/message_lookup_by_library.dart'; + +final messages = new MessageLookup(); + +typedef String MessageIfAbsent(String messageStr, List args); + +class MessageLookup extends MessageLookupByLibrary { + String get localeName => 'bn_BN'; + + final messages = _notInlinedMessages(_notInlinedMessages); + static Map _notInlinedMessages(_) => { + "bold": MessageLookupByLibrary.simpleMessage("বল্ড ফন্ট"), + "bulletedList": MessageLookupByLibrary.simpleMessage("বুলেট তালিকা"), + "checkbox": MessageLookupByLibrary.simpleMessage("চেকবক্স"), + "embedCode": MessageLookupByLibrary.simpleMessage("এম্বেড কোড"), + "heading1": MessageLookupByLibrary.simpleMessage("শিরোনাম 1"), + "heading2": MessageLookupByLibrary.simpleMessage("শিরোনাম 2"), + "heading3": MessageLookupByLibrary.simpleMessage("শিরোনাম 3"), + "highlight": MessageLookupByLibrary.simpleMessage("হাইলাইট"), + "image": MessageLookupByLibrary.simpleMessage("ইমেজ"), + "italic": MessageLookupByLibrary.simpleMessage("ইটালিক ফন্ট"), + "link": MessageLookupByLibrary.simpleMessage("লিঙ্ক"), + "numberedList": + MessageLookupByLibrary.simpleMessage("সংখ্যাযুক্ত তালিকা"), + "quote": MessageLookupByLibrary.simpleMessage("উদ্ধৃতি"), + "strikethrough": MessageLookupByLibrary.simpleMessage("স্ট্রাইকথ্রু"), + "text": MessageLookupByLibrary.simpleMessage("পাঠ্য"), + "underline": MessageLookupByLibrary.simpleMessage("আন্ডারলাইন") + }; +} diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/l10n.dart b/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/l10n.dart index 7c45b8ae85..0d464022d2 100644 --- a/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/l10n.dart +++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/l10n/l10n.dart @@ -219,6 +219,7 @@ class AppLocalizationDelegate List get supportedLocales { return const [ Locale.fromSubtags(languageCode: 'en'), + Locale.fromSubtags(languageCode: 'bn', countryCode: 'BN'), Locale.fromSubtags(languageCode: 'ca'), Locale.fromSubtags(languageCode: 'cs', countryCode: 'CZ'), Locale.fromSubtags(languageCode: 'de', countryCode: 'DE'),