From f5cf388f2cb8bb9378cf5197ddc4b9cd5479187a Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Fri, 21 Jun 2024 11:04:30 +0800 Subject: [PATCH 01/11] add localization folder for deriv_mobile_chart_wrapper package --- packages/deriv_localizations/l10n.sh | 2 +- .../lib/l10n/deriv_mobile_chart_wrapper/app_en.arb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 packages/deriv_localizations/lib/l10n/deriv_mobile_chart_wrapper/app_en.arb diff --git a/packages/deriv_localizations/l10n.sh b/packages/deriv_localizations/l10n.sh index b825291b8..43dc70c52 100755 --- a/packages/deriv_localizations/l10n.sh +++ b/packages/deriv_localizations/l10n.sh @@ -2,7 +2,7 @@ # Directories containing ARB files -feature_dirs=("deriv_auth" "deriv_passkeys") +feature_dirs=("deriv_auth" "deriv_passkeys", "deriv_mobile_chart_wrapper") # Base localization directory base_l10n_dir="lib/l10n" diff --git a/packages/deriv_localizations/lib/l10n/deriv_mobile_chart_wrapper/app_en.arb b/packages/deriv_localizations/lib/l10n/deriv_mobile_chart_wrapper/app_en.arb new file mode 100644 index 000000000..106659886 --- /dev/null +++ b/packages/deriv_localizations/lib/l10n/deriv_mobile_chart_wrapper/app_en.arb @@ -0,0 +1,3 @@ +{ + "labelIndicators": "Indicators" +} \ No newline at end of file From a0353fd7249d0c53d04e7109867c27c9d8937cd9 Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Fri, 21 Jun 2024 11:04:42 +0800 Subject: [PATCH 02/11] Update localizations --- ...iv_mobile_chart_wrapper_localizations.dart | 130 ++++++++++++++++++ ...mobile_chart_wrapper_localizations_en.dart | 9 ++ 2 files changed, 139 insertions(+) create mode 100644 packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart create mode 100644 packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations_en.dart diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart new file mode 100644 index 000000000..416b24f9b --- /dev/null +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart @@ -0,0 +1,130 @@ +import 'dart:async'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/widgets.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:intl/intl.dart' as intl; + +import 'deriv_mobile_chart_wrapper_localizations_en.dart'; + +/// Callers can lookup localized strings with an instance of DerivMobileChartWrapperLocalizations +/// returned by `DerivMobileChartWrapperLocalizations.of(context)`. +/// +/// Applications need to include `DerivMobileChartWrapperLocalizations.delegate()` in their app's +/// `localizationDelegates` list, and the locales they support in the app's +/// `supportedLocales` list. For example: +/// +/// ```dart +/// import 'deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart'; +/// +/// return MaterialApp( +/// localizationsDelegates: DerivMobileChartWrapperLocalizations.localizationsDelegates, +/// supportedLocales: DerivMobileChartWrapperLocalizations.supportedLocales, +/// home: MyApplicationHome(), +/// ); +/// ``` +/// +/// ## Update pubspec.yaml +/// +/// Please make sure to update your pubspec.yaml to include the following +/// packages: +/// +/// ```yaml +/// dependencies: +/// # Internationalization support. +/// flutter_localizations: +/// sdk: flutter +/// intl: any # Use the pinned version from flutter_localizations +/// +/// # Rest of dependencies +/// ``` +/// +/// ## iOS Applications +/// +/// iOS applications define key application metadata, including supported +/// locales, in an Info.plist file that is built into the application bundle. +/// To configure the locales supported by your app, you’ll need to edit this +/// file. +/// +/// First, open your project’s ios/Runner.xcworkspace Xcode workspace file. +/// Then, in the Project Navigator, open the Info.plist file under the Runner +/// project’s Runner folder. +/// +/// Next, select the Information Property List item, select Add Item from the +/// Editor menu, then select Localizations from the pop-up menu. +/// +/// Select and expand the newly-created Localizations item then, for each +/// locale your application supports, add a new item and select the locale +/// you wish to add from the pop-up menu in the Value field. This list should +/// be consistent with the languages listed in the DerivMobileChartWrapperLocalizations.supportedLocales +/// property. +abstract class DerivMobileChartWrapperLocalizations { + DerivMobileChartWrapperLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString()); + + final String localeName; + + static DerivMobileChartWrapperLocalizations of(BuildContext context) { + return Localizations.of(context, DerivMobileChartWrapperLocalizations)!; + } + + static const LocalizationsDelegate delegate = _DerivMobileChartWrapperLocalizationsDelegate(); + + /// A list of this localizations delegate along with the default localizations + /// delegates. + /// + /// Returns a list of localizations delegates containing this delegate along with + /// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, + /// and GlobalWidgetsLocalizations.delegate. + /// + /// Additional delegates can be added by appending to this list in + /// MaterialApp. This list does not have to be used at all if a custom list + /// of delegates is preferred or required. + static const List> localizationsDelegates = >[ + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; + + /// A list of this localizations delegate's supported locales. + static const List supportedLocales = [ + Locale('en') + ]; + + /// No description provided for @labelIndicators. + /// + /// In en, this message translates to: + /// **'Indicators'** + String get labelIndicators; +} + +class _DerivMobileChartWrapperLocalizationsDelegate extends LocalizationsDelegate { + const _DerivMobileChartWrapperLocalizationsDelegate(); + + @override + Future load(Locale locale) { + return SynchronousFuture(lookupDerivMobileChartWrapperLocalizations(locale)); + } + + @override + bool isSupported(Locale locale) => ['en'].contains(locale.languageCode); + + @override + bool shouldReload(_DerivMobileChartWrapperLocalizationsDelegate old) => false; +} + +DerivMobileChartWrapperLocalizations lookupDerivMobileChartWrapperLocalizations(Locale locale) { + + + // Lookup logic when only language code is specified. + switch (locale.languageCode) { + case 'en': return DerivMobileChartWrapperLocalizationsEn(); + } + + throw FlutterError( + 'DerivMobileChartWrapperLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.' + ); +} diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations_en.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations_en.dart new file mode 100644 index 000000000..4cb6f2961 --- /dev/null +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations_en.dart @@ -0,0 +1,9 @@ +import 'deriv_mobile_chart_wrapper_localizations.dart'; + +/// The translations for English (`en`). +class DerivMobileChartWrapperLocalizationsEn extends DerivMobileChartWrapperLocalizations { + DerivMobileChartWrapperLocalizationsEn([String locale = 'en']) : super(locale); + + @override + String get labelIndicators => 'Indicators'; +} From 53c5ec62fd157d82857988651d86012c8f3b9557 Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Fri, 21 Jun 2024 11:07:32 +0800 Subject: [PATCH 03/11] Update localizations --- .../deriv_passkeys/deriv_passkeys_localizations_pt.dart | 6 +++--- .../deriv_passkeys/deriv_passkeys_localizations_th.dart | 4 ++-- .../deriv_passkeys/deriv_passkeys_localizations_tr.dart | 6 +++--- .../deriv_passkeys/deriv_passkeys_localizations_zh.dart | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_pt.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_pt.dart index 962bf194d..e8d959a8c 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_pt.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_pt.dart @@ -64,13 +64,13 @@ class DerivPasskeysLocalizationsPt extends DerivPasskeysLocalizations { String get howToCreatePasskeyDescription2 => 'Pode criar uma passkey por dispositivo.'; @override - String get p2pHowToCreatePasskey => 'Como criar uma chave de acesso?'; + String get p2pHowToCreatePasskey => 'Como pode criar uma passkey?'; @override - String get p2pHowToCreatePasskeyDescription1 => 'Vá para \'Perfil\' em seu aplicativo Deriv P2P.'; + String get p2pHowToCreatePasskeyDescription1 => 'Aceda à secção \"Perfil\" na sua aplicação Deriv P2P.'; @override - String get p2pHowToCreatePasskeyDescription2 => 'Toque em “Chaves de acesso” para criar sua chave de acesso.'; + String get p2pHowToCreatePasskeyDescription2 => 'Selecione \"Passkeys\" para criar a sua chave de acesso.'; @override String get whereArePasskeysSaved => 'Onde são guardadas as chaves de acesso?'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_th.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_th.dart index 283e39200..b48f49d11 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_th.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_th.dart @@ -64,13 +64,13 @@ class DerivPasskeysLocalizationsTh extends DerivPasskeysLocalizations { String get howToCreatePasskeyDescription2 => 'คุณสามารถสร้างหนึ่ง Passkey ต่ออุปกรณ์'; @override - String get p2pHowToCreatePasskey => 'วิธีการสร้างรหัสผ่าน'; + String get p2pHowToCreatePasskey => 'จะสร้าง Passkey ได้อย่างไร?'; @override String get p2pHowToCreatePasskeyDescription1 => 'ไปที่ \'โปรไฟล์\' ในแอป Deriv P2P ของคุณ'; @override - String get p2pHowToCreatePasskeyDescription2 => 'แตะ \'รหัสผ่าน\' เพื่อสร้างรหัสผ่านของคุณ'; + String get p2pHowToCreatePasskeyDescription2 => 'แตะ \'Passkeys\' เพื่อสร้าง Passkey ของคุณ'; @override String get whereArePasskeysSaved => 'Passkey จะถูกบันทึกไว้ที่ไหน?'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_tr.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_tr.dart index 00d289dbc..ee9c2d250 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_tr.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_tr.dart @@ -64,13 +64,13 @@ class DerivPasskeysLocalizationsTr extends DerivPasskeysLocalizations { String get howToCreatePasskeyDescription2 => 'Cihaz başına bir passkey oluşturabilirsiniz.'; @override - String get p2pHowToCreatePasskey => 'Parola nasıl oluşturulur?'; + String get p2pHowToCreatePasskey => 'Passkey nasıl oluşturulur?'; @override String get p2pHowToCreatePasskeyDescription1 => 'Deriv P2P uygulamanızdaki \'Profil\' bölümüne gidin.'; @override - String get p2pHowToCreatePasskeyDescription2 => 'Parola anahtarınızı oluşturmak için \'Parola Tuşları\'na dokunun.'; + String get p2pHowToCreatePasskeyDescription2 => 'Passkey\'inizi oluşturmak için \"Passkeys\" ögesine dokunun.'; @override String get whereArePasskeysSaved => 'Passkeys nereye kaydedilir?'; @@ -151,7 +151,7 @@ class DerivPasskeysLocalizationsTr extends DerivPasskeysLocalizations { String get continueTradingButtonText => 'Alım satıma devam'; @override - String get addMorePasskeysButtonText => 'Daha fazla passkeys'; + String get addMorePasskeysButtonText => 'Daha fazla passkeys ekle'; @override String get unableToSetupPasskey => 'Passkey ayarlanamıyor'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_zh.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_zh.dart index 6fd607651..8684b4fc8 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_zh.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_zh.dart @@ -64,13 +64,13 @@ class DerivPasskeysLocalizationsZh extends DerivPasskeysLocalizations { String get howToCreatePasskeyDescription2 => '可以為每個裝置建立一個金鑰。'; @override - String get p2pHowToCreatePasskey => '如何建立密碼?'; + String get p2pHowToCreatePasskey => '如何建立金鑰?'; @override - String get p2pHowToCreatePasskeyDescription1 => '在您的 Deriv P2P 應用程序中轉到「個人資料」。'; + String get p2pHowToCreatePasskeyDescription1 => '在 Deriv P2P 應用程式中轉到‘個人資料‘。'; @override - String get p2pHowToCreatePasskeyDescription2 => '點擊「密碼」以建立您的密碼。'; + String get p2pHowToCreatePasskeyDescription2 => '點選‘密鑰‘以建立密鑰。'; @override String get whereArePasskeysSaved => '金鑰儲存在哪裡?'; From 0e71dbf6958cd4faf4023795c63195ba2b89d957 Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Fri, 21 Jun 2024 11:08:49 +0800 Subject: [PATCH 04/11] minor fix in script file --- packages/deriv_localizations/l10n.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/deriv_localizations/l10n.sh b/packages/deriv_localizations/l10n.sh index 43dc70c52..d21e7ee3d 100755 --- a/packages/deriv_localizations/l10n.sh +++ b/packages/deriv_localizations/l10n.sh @@ -2,7 +2,7 @@ # Directories containing ARB files -feature_dirs=("deriv_auth" "deriv_passkeys", "deriv_mobile_chart_wrapper") +feature_dirs=("deriv_auth" "deriv_passkeys" "deriv_mobile_chart_wrapper") # Base localization directory base_l10n_dir="lib/l10n" From 239f8284ed751882468c7e66800b85222e90139d Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Fri, 21 Jun 2024 11:11:18 +0800 Subject: [PATCH 05/11] fix eof of arb file --- .../lib/l10n/deriv_mobile_chart_wrapper/app_en.arb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/deriv_localizations/lib/l10n/deriv_mobile_chart_wrapper/app_en.arb b/packages/deriv_localizations/lib/l10n/deriv_mobile_chart_wrapper/app_en.arb index 106659886..d3fba5184 100644 --- a/packages/deriv_localizations/lib/l10n/deriv_mobile_chart_wrapper/app_en.arb +++ b/packages/deriv_localizations/lib/l10n/deriv_mobile_chart_wrapper/app_en.arb @@ -1,3 +1,3 @@ { "labelIndicators": "Indicators" -} \ No newline at end of file +} From a225583f6b6d0597d49d27f36e84886c816fca6f Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Fri, 21 Jun 2024 12:47:28 +0800 Subject: [PATCH 06/11] Update localizations --- .../l10n/generated/deriv_auth/deriv_auth_localizations.dart | 6 ++++++ .../generated/deriv_auth/deriv_auth_localizations_ar.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_bn.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_de.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_en.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_es.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_fr.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_it.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_ko.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_pl.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_pt.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_ru.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_si.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_sw.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_th.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_tr.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_vi.dart | 3 +++ .../generated/deriv_auth/deriv_auth_localizations_zh.dart | 3 +++ 18 files changed, 57 insertions(+) diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations.dart index 44a0e566c..d86de27a5 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations.dart @@ -159,6 +159,12 @@ abstract class DerivAuthLocalizations { /// **'Sign up for free'** String get actionSignUpForFree; + /// No description provided for @actionGetAFreeAccount. + /// + /// In en, this message translates to: + /// **'Get a free account'** + String get actionGetAFreeAccount; + /// No description provided for @actionLogin. /// /// In en, this message translates to: diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ar.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ar.dart index 158f2adef..93ba796bf 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ar.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ar.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsAr extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'قم بالتسجيل مجانًا'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'تسجيل دخول'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_bn.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_bn.dart index 992d068f2..e8dc78626 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_bn.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_bn.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsBn extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'বিনামূল্যে সাইন আপ করুন'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'লগ ইন'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_de.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_de.dart index 528b8ff2b..7db132ee7 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_de.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_de.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsDe extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Melde dich kostenlos an'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Anmelden'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_en.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_en.dart index b5fd83709..163ba8c61 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_en.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_en.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsEn extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Sign up for free'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Log in'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_es.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_es.dart index 288c8bdb8..2570fd131 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_es.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_es.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsEs extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Regístrate gratis'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Iniciar sesión'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_fr.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_fr.dart index 8defaaeda..626aac914 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_fr.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_fr.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsFr extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Inscrivez-vous gratuitement'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Connexion'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_it.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_it.dart index 558bf4ad5..9744ee66c 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_it.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_it.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsIt extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Registrati gratis'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Accedi'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ko.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ko.dart index 01501babf..c72f7f150 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ko.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ko.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsKo extends DerivAuthLocalizations { @override String get actionSignUpForFree => '무료로 가입하기'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => '로그인'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pl.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pl.dart index cc12b74e8..3a6fc6364 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pl.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pl.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsPl extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Zarejestruj się za darmo'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Zaloguj'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pt.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pt.dart index a4803dd42..b221155b6 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pt.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pt.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsPt extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Registe-se gratuitamente'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Iniciar sessão'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ru.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ru.dart index e56b8dcab..86c31966e 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ru.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ru.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsRu extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Зарегистрируйтесь бесплатно'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Вход'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_si.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_si.dart index a99eca270..1c9e708fc 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_si.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_si.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsSi extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'නොමිලේ ලියාපදිංචි වන්න'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'පුරනය වන්න'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_sw.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_sw.dart index 35f8be41f..f1b8f0dd2 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_sw.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_sw.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsSw extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Jisajili bila malipo'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Ingia'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_th.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_th.dart index 45f5b63d1..f2f982035 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_th.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_th.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsTh extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'ลงทะเบียนได้ฟรี'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'เข้าสู่ระบบ'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_tr.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_tr.dart index a43f8a4b0..88dcb10ac 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_tr.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_tr.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsTr extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Ücretsiz Üye Olun'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Giriş yap'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_vi.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_vi.dart index 61bd9e96a..fce658045 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_vi.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_vi.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsVi extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Đăng ký miễn phí'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => 'Đăng nhập'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_zh.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_zh.dart index d26dccc2d..127ac2c84 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_zh.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_zh.dart @@ -24,6 +24,9 @@ class DerivAuthLocalizationsZh extends DerivAuthLocalizations { @override String get actionSignUpForFree => '免費註冊'; + @override + String get actionGetAFreeAccount => 'Get a free account'; + @override String get actionLogin => '登入'; From e6b7e5a76486aef5231c13d70bca4eb7b3f82fd8 Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Fri, 21 Jun 2024 12:48:10 +0800 Subject: [PATCH 07/11] add a missing label in deriv_auth localization --- packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb b/packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb index 8ac9be2bf..b49fbace5 100644 --- a/packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb +++ b/packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb @@ -14,6 +14,7 @@ "warnNotAvailableCountries": "If you have any questions, contact us via ", "labelLiveChat": "Live chat", "actionSignUpForFree": "Sign up for free", + "actionGetAFreeAccount": "Get a free account", "actionLogin": "Log in", "labelTwoFactorAuth": "Two-factor authentication", "informEnterTwoFactorAuthCode": "Enter the 6-digit code from the authenticator app on your phone.", From f23beae1c551fa39c27d7fef4bc48aee31ccef27 Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Mon, 24 Jun 2024 13:13:56 +0800 Subject: [PATCH 08/11] Update localizations --- .../l10n/generated/deriv_auth/deriv_auth_localizations.dart | 6 ------ .../generated/deriv_auth/deriv_auth_localizations_ar.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_bn.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_de.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_en.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_es.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_fr.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_it.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_ko.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_pl.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_pt.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_ru.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_si.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_sw.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_th.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_tr.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_vi.dart | 3 --- .../generated/deriv_auth/deriv_auth_localizations_zh.dart | 3 --- 18 files changed, 57 deletions(-) diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations.dart index d86de27a5..44a0e566c 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations.dart @@ -159,12 +159,6 @@ abstract class DerivAuthLocalizations { /// **'Sign up for free'** String get actionSignUpForFree; - /// No description provided for @actionGetAFreeAccount. - /// - /// In en, this message translates to: - /// **'Get a free account'** - String get actionGetAFreeAccount; - /// No description provided for @actionLogin. /// /// In en, this message translates to: diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ar.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ar.dart index 93ba796bf..158f2adef 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ar.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ar.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsAr extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'قم بالتسجيل مجانًا'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'تسجيل دخول'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_bn.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_bn.dart index e8dc78626..992d068f2 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_bn.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_bn.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsBn extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'বিনামূল্যে সাইন আপ করুন'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'লগ ইন'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_de.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_de.dart index 7db132ee7..528b8ff2b 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_de.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_de.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsDe extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Melde dich kostenlos an'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Anmelden'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_en.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_en.dart index 163ba8c61..b5fd83709 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_en.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_en.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsEn extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Sign up for free'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Log in'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_es.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_es.dart index 2570fd131..288c8bdb8 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_es.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_es.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsEs extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Regístrate gratis'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Iniciar sesión'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_fr.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_fr.dart index 626aac914..8defaaeda 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_fr.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_fr.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsFr extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Inscrivez-vous gratuitement'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Connexion'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_it.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_it.dart index 9744ee66c..558bf4ad5 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_it.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_it.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsIt extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Registrati gratis'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Accedi'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ko.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ko.dart index c72f7f150..01501babf 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ko.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ko.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsKo extends DerivAuthLocalizations { @override String get actionSignUpForFree => '무료로 가입하기'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => '로그인'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pl.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pl.dart index 3a6fc6364..cc12b74e8 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pl.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pl.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsPl extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Zarejestruj się za darmo'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Zaloguj'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pt.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pt.dart index b221155b6..a4803dd42 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pt.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_pt.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsPt extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Registe-se gratuitamente'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Iniciar sessão'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ru.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ru.dart index 86c31966e..e56b8dcab 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ru.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_ru.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsRu extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Зарегистрируйтесь бесплатно'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Вход'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_si.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_si.dart index 1c9e708fc..a99eca270 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_si.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_si.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsSi extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'නොමිලේ ලියාපදිංචි වන්න'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'පුරනය වන්න'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_sw.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_sw.dart index f1b8f0dd2..35f8be41f 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_sw.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_sw.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsSw extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Jisajili bila malipo'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Ingia'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_th.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_th.dart index f2f982035..45f5b63d1 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_th.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_th.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsTh extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'ลงทะเบียนได้ฟรี'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'เข้าสู่ระบบ'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_tr.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_tr.dart index 88dcb10ac..a43f8a4b0 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_tr.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_tr.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsTr extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Ücretsiz Üye Olun'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Giriş yap'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_vi.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_vi.dart index fce658045..61bd9e96a 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_vi.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_vi.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsVi extends DerivAuthLocalizations { @override String get actionSignUpForFree => 'Đăng ký miễn phí'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => 'Đăng nhập'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_zh.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_zh.dart index 127ac2c84..d26dccc2d 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_zh.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_auth/deriv_auth_localizations_zh.dart @@ -24,9 +24,6 @@ class DerivAuthLocalizationsZh extends DerivAuthLocalizations { @override String get actionSignUpForFree => '免費註冊'; - @override - String get actionGetAFreeAccount => 'Get a free account'; - @override String get actionLogin => '登入'; From 209255e2fb2bba37315ba518d772298e2c425fb2 Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Mon, 24 Jun 2024 13:16:03 +0800 Subject: [PATCH 09/11] remove getFreeAccount label from arb file --- packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb b/packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb index b49fbace5..8ac9be2bf 100644 --- a/packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb +++ b/packages/deriv_localizations/lib/l10n/deriv_auth/app_en.arb @@ -14,7 +14,6 @@ "warnNotAvailableCountries": "If you have any questions, contact us via ", "labelLiveChat": "Live chat", "actionSignUpForFree": "Sign up for free", - "actionGetAFreeAccount": "Get a free account", "actionLogin": "Log in", "labelTwoFactorAuth": "Two-factor authentication", "informEnterTwoFactorAuthCode": "Enter the 6-digit code from the authenticator app on your phone.", From 58d631cd5265c91d61d89ca9c0ab2e80efa8a19b Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Tue, 25 Jun 2024 17:06:43 +0800 Subject: [PATCH 10/11] remove generated codes --- ...iv_mobile_chart_wrapper_localizations.dart | 130 ------------------ ...mobile_chart_wrapper_localizations_en.dart | 9 -- .../deriv_passkeys_localizations_pt.dart | 6 +- .../deriv_passkeys_localizations_th.dart | 4 +- .../deriv_passkeys_localizations_tr.dart | 6 +- .../deriv_passkeys_localizations_zh.dart | 6 +- 6 files changed, 11 insertions(+), 150 deletions(-) delete mode 100644 packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart delete mode 100644 packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations_en.dart diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart deleted file mode 100644 index 416b24f9b..000000000 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart +++ /dev/null @@ -1,130 +0,0 @@ -import 'dart:async'; - -import 'package:flutter/foundation.dart'; -import 'package:flutter/widgets.dart'; -import 'package:flutter_localizations/flutter_localizations.dart'; -import 'package:intl/intl.dart' as intl; - -import 'deriv_mobile_chart_wrapper_localizations_en.dart'; - -/// Callers can lookup localized strings with an instance of DerivMobileChartWrapperLocalizations -/// returned by `DerivMobileChartWrapperLocalizations.of(context)`. -/// -/// Applications need to include `DerivMobileChartWrapperLocalizations.delegate()` in their app's -/// `localizationDelegates` list, and the locales they support in the app's -/// `supportedLocales` list. For example: -/// -/// ```dart -/// import 'deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart'; -/// -/// return MaterialApp( -/// localizationsDelegates: DerivMobileChartWrapperLocalizations.localizationsDelegates, -/// supportedLocales: DerivMobileChartWrapperLocalizations.supportedLocales, -/// home: MyApplicationHome(), -/// ); -/// ``` -/// -/// ## Update pubspec.yaml -/// -/// Please make sure to update your pubspec.yaml to include the following -/// packages: -/// -/// ```yaml -/// dependencies: -/// # Internationalization support. -/// flutter_localizations: -/// sdk: flutter -/// intl: any # Use the pinned version from flutter_localizations -/// -/// # Rest of dependencies -/// ``` -/// -/// ## iOS Applications -/// -/// iOS applications define key application metadata, including supported -/// locales, in an Info.plist file that is built into the application bundle. -/// To configure the locales supported by your app, you’ll need to edit this -/// file. -/// -/// First, open your project’s ios/Runner.xcworkspace Xcode workspace file. -/// Then, in the Project Navigator, open the Info.plist file under the Runner -/// project’s Runner folder. -/// -/// Next, select the Information Property List item, select Add Item from the -/// Editor menu, then select Localizations from the pop-up menu. -/// -/// Select and expand the newly-created Localizations item then, for each -/// locale your application supports, add a new item and select the locale -/// you wish to add from the pop-up menu in the Value field. This list should -/// be consistent with the languages listed in the DerivMobileChartWrapperLocalizations.supportedLocales -/// property. -abstract class DerivMobileChartWrapperLocalizations { - DerivMobileChartWrapperLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString()); - - final String localeName; - - static DerivMobileChartWrapperLocalizations of(BuildContext context) { - return Localizations.of(context, DerivMobileChartWrapperLocalizations)!; - } - - static const LocalizationsDelegate delegate = _DerivMobileChartWrapperLocalizationsDelegate(); - - /// A list of this localizations delegate along with the default localizations - /// delegates. - /// - /// Returns a list of localizations delegates containing this delegate along with - /// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, - /// and GlobalWidgetsLocalizations.delegate. - /// - /// Additional delegates can be added by appending to this list in - /// MaterialApp. This list does not have to be used at all if a custom list - /// of delegates is preferred or required. - static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; - - /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en') - ]; - - /// No description provided for @labelIndicators. - /// - /// In en, this message translates to: - /// **'Indicators'** - String get labelIndicators; -} - -class _DerivMobileChartWrapperLocalizationsDelegate extends LocalizationsDelegate { - const _DerivMobileChartWrapperLocalizationsDelegate(); - - @override - Future load(Locale locale) { - return SynchronousFuture(lookupDerivMobileChartWrapperLocalizations(locale)); - } - - @override - bool isSupported(Locale locale) => ['en'].contains(locale.languageCode); - - @override - bool shouldReload(_DerivMobileChartWrapperLocalizationsDelegate old) => false; -} - -DerivMobileChartWrapperLocalizations lookupDerivMobileChartWrapperLocalizations(Locale locale) { - - - // Lookup logic when only language code is specified. - switch (locale.languageCode) { - case 'en': return DerivMobileChartWrapperLocalizationsEn(); - } - - throw FlutterError( - 'DerivMobileChartWrapperLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.' - ); -} diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations_en.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations_en.dart deleted file mode 100644 index 4cb6f2961..000000000 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations_en.dart +++ /dev/null @@ -1,9 +0,0 @@ -import 'deriv_mobile_chart_wrapper_localizations.dart'; - -/// The translations for English (`en`). -class DerivMobileChartWrapperLocalizationsEn extends DerivMobileChartWrapperLocalizations { - DerivMobileChartWrapperLocalizationsEn([String locale = 'en']) : super(locale); - - @override - String get labelIndicators => 'Indicators'; -} diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_pt.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_pt.dart index e8d959a8c..962bf194d 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_pt.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_pt.dart @@ -64,13 +64,13 @@ class DerivPasskeysLocalizationsPt extends DerivPasskeysLocalizations { String get howToCreatePasskeyDescription2 => 'Pode criar uma passkey por dispositivo.'; @override - String get p2pHowToCreatePasskey => 'Como pode criar uma passkey?'; + String get p2pHowToCreatePasskey => 'Como criar uma chave de acesso?'; @override - String get p2pHowToCreatePasskeyDescription1 => 'Aceda à secção \"Perfil\" na sua aplicação Deriv P2P.'; + String get p2pHowToCreatePasskeyDescription1 => 'Vá para \'Perfil\' em seu aplicativo Deriv P2P.'; @override - String get p2pHowToCreatePasskeyDescription2 => 'Selecione \"Passkeys\" para criar a sua chave de acesso.'; + String get p2pHowToCreatePasskeyDescription2 => 'Toque em “Chaves de acesso” para criar sua chave de acesso.'; @override String get whereArePasskeysSaved => 'Onde são guardadas as chaves de acesso?'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_th.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_th.dart index b48f49d11..283e39200 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_th.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_th.dart @@ -64,13 +64,13 @@ class DerivPasskeysLocalizationsTh extends DerivPasskeysLocalizations { String get howToCreatePasskeyDescription2 => 'คุณสามารถสร้างหนึ่ง Passkey ต่ออุปกรณ์'; @override - String get p2pHowToCreatePasskey => 'จะสร้าง Passkey ได้อย่างไร?'; + String get p2pHowToCreatePasskey => 'วิธีการสร้างรหัสผ่าน'; @override String get p2pHowToCreatePasskeyDescription1 => 'ไปที่ \'โปรไฟล์\' ในแอป Deriv P2P ของคุณ'; @override - String get p2pHowToCreatePasskeyDescription2 => 'แตะ \'Passkeys\' เพื่อสร้าง Passkey ของคุณ'; + String get p2pHowToCreatePasskeyDescription2 => 'แตะ \'รหัสผ่าน\' เพื่อสร้างรหัสผ่านของคุณ'; @override String get whereArePasskeysSaved => 'Passkey จะถูกบันทึกไว้ที่ไหน?'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_tr.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_tr.dart index ee9c2d250..00d289dbc 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_tr.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_tr.dart @@ -64,13 +64,13 @@ class DerivPasskeysLocalizationsTr extends DerivPasskeysLocalizations { String get howToCreatePasskeyDescription2 => 'Cihaz başına bir passkey oluşturabilirsiniz.'; @override - String get p2pHowToCreatePasskey => 'Passkey nasıl oluşturulur?'; + String get p2pHowToCreatePasskey => 'Parola nasıl oluşturulur?'; @override String get p2pHowToCreatePasskeyDescription1 => 'Deriv P2P uygulamanızdaki \'Profil\' bölümüne gidin.'; @override - String get p2pHowToCreatePasskeyDescription2 => 'Passkey\'inizi oluşturmak için \"Passkeys\" ögesine dokunun.'; + String get p2pHowToCreatePasskeyDescription2 => 'Parola anahtarınızı oluşturmak için \'Parola Tuşları\'na dokunun.'; @override String get whereArePasskeysSaved => 'Passkeys nereye kaydedilir?'; @@ -151,7 +151,7 @@ class DerivPasskeysLocalizationsTr extends DerivPasskeysLocalizations { String get continueTradingButtonText => 'Alım satıma devam'; @override - String get addMorePasskeysButtonText => 'Daha fazla passkeys ekle'; + String get addMorePasskeysButtonText => 'Daha fazla passkeys'; @override String get unableToSetupPasskey => 'Passkey ayarlanamıyor'; diff --git a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_zh.dart b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_zh.dart index 8684b4fc8..6fd607651 100644 --- a/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_zh.dart +++ b/packages/deriv_localizations/lib/l10n/generated/deriv_passkeys/deriv_passkeys_localizations_zh.dart @@ -64,13 +64,13 @@ class DerivPasskeysLocalizationsZh extends DerivPasskeysLocalizations { String get howToCreatePasskeyDescription2 => '可以為每個裝置建立一個金鑰。'; @override - String get p2pHowToCreatePasskey => '如何建立金鑰?'; + String get p2pHowToCreatePasskey => '如何建立密碼?'; @override - String get p2pHowToCreatePasskeyDescription1 => '在 Deriv P2P 應用程式中轉到‘個人資料‘。'; + String get p2pHowToCreatePasskeyDescription1 => '在您的 Deriv P2P 應用程序中轉到「個人資料」。'; @override - String get p2pHowToCreatePasskeyDescription2 => '點選‘密鑰‘以建立密鑰。'; + String get p2pHowToCreatePasskeyDescription2 => '點擊「密碼」以建立您的密碼。'; @override String get whereArePasskeysSaved => '金鑰儲存在哪裡?'; From c939a6a9105741619fa8700329bffa0979549c99 Mon Sep 17 00:00:00 2001 From: ramin-deriv Date: Tue, 25 Jun 2024 21:28:33 +0800 Subject: [PATCH 11/11] add another step in script to create the export barrel file --- packages/deriv_localizations/l10n.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/deriv_localizations/l10n.sh b/packages/deriv_localizations/l10n.sh index d21e7ee3d..bf2e9fe61 100755 --- a/packages/deriv_localizations/l10n.sh +++ b/packages/deriv_localizations/l10n.sh @@ -29,14 +29,23 @@ done ls $base_l10n_dir/generated -echo "Localization generation complete." - - # Add the generated localization files to Git git add "$base_l10n_dir/generated" +# Create deriv_localizations.dart barrel file under lib folder. +localizations_file="lib/deriv_localizations.dart" +echo "// Generated file for exporting localization classes" > $localizations_file + +for dir in "${feature_dirs[@]}"; do + echo "export 'l10n/generated/$dir/${dir}_localizations.dart';" >> $localizations_file +done + +echo "Created deriv_localizations.dart barrel file with exports." + +# Add and commit the deriv_localizations.dart barrel file to Git +git add $localizations_file + # Commit the changes git commit -m "Update localizations" - echo "Localization generation complete."