Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(deriv_localizations): Crowdin Localization Generated #648

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/deriv_localizations/lib/deriv_localizations.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Generated file for exporting localization classes
export 'l10n/generated/deriv_auth/deriv_auth_localizations.dart';
export 'l10n/generated/deriv_passkeys/deriv_passkeys_localizations.dart';
export 'l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart';
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
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_ar.dart';
import 'deriv_mobile_chart_wrapper_localizations_bn.dart';
import 'deriv_mobile_chart_wrapper_localizations_de.dart';
import 'deriv_mobile_chart_wrapper_localizations_en.dart';
import 'deriv_mobile_chart_wrapper_localizations_es.dart';
import 'deriv_mobile_chart_wrapper_localizations_fr.dart';
import 'deriv_mobile_chart_wrapper_localizations_it.dart';
import 'deriv_mobile_chart_wrapper_localizations_ko.dart';
import 'deriv_mobile_chart_wrapper_localizations_pl.dart';
import 'deriv_mobile_chart_wrapper_localizations_pt.dart';
import 'deriv_mobile_chart_wrapper_localizations_ru.dart';
import 'deriv_mobile_chart_wrapper_localizations_si.dart';
import 'deriv_mobile_chart_wrapper_localizations_sw.dart';
import 'deriv_mobile_chart_wrapper_localizations_th.dart';
import 'deriv_mobile_chart_wrapper_localizations_tr.dart';
import 'deriv_mobile_chart_wrapper_localizations_vi.dart';
import 'deriv_mobile_chart_wrapper_localizations_zh.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<DerivMobileChartWrapperLocalizations>(context, DerivMobileChartWrapperLocalizations)!;
}

static const LocalizationsDelegate<DerivMobileChartWrapperLocalizations> 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<LocalizationsDelegate<dynamic>> localizationsDelegates = <LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];

/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[
Locale('ar'),
Locale('bn'),
Locale('de'),
Locale('en'),
Locale('es'),
Locale('fr'),
Locale('it'),
Locale('ko'),
Locale('pl'),
Locale('pt'),
Locale('ru'),
Locale('si'),
Locale('sw'),
Locale('th'),
Locale('tr'),
Locale('vi'),
Locale('zh')
];

/// No description provided for @labelIndicators.
///
/// In en, this message translates to:
/// **'Indicators'**
String get labelIndicators;
}

class _DerivMobileChartWrapperLocalizationsDelegate extends LocalizationsDelegate<DerivMobileChartWrapperLocalizations> {
const _DerivMobileChartWrapperLocalizationsDelegate();

@override
Future<DerivMobileChartWrapperLocalizations> load(Locale locale) {
return SynchronousFuture<DerivMobileChartWrapperLocalizations>(lookupDerivMobileChartWrapperLocalizations(locale));
}

@override
bool isSupported(Locale locale) => <String>['ar', 'bn', 'de', 'en', 'es', 'fr', 'it', 'ko', 'pl', 'pt', 'ru', 'si', 'sw', 'th', 'tr', 'vi', 'zh'].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 'ar': return DerivMobileChartWrapperLocalizationsAr();
case 'bn': return DerivMobileChartWrapperLocalizationsBn();
case 'de': return DerivMobileChartWrapperLocalizationsDe();
case 'en': return DerivMobileChartWrapperLocalizationsEn();
case 'es': return DerivMobileChartWrapperLocalizationsEs();
case 'fr': return DerivMobileChartWrapperLocalizationsFr();
case 'it': return DerivMobileChartWrapperLocalizationsIt();
case 'ko': return DerivMobileChartWrapperLocalizationsKo();
case 'pl': return DerivMobileChartWrapperLocalizationsPl();
case 'pt': return DerivMobileChartWrapperLocalizationsPt();
case 'ru': return DerivMobileChartWrapperLocalizationsRu();
case 'si': return DerivMobileChartWrapperLocalizationsSi();
case 'sw': return DerivMobileChartWrapperLocalizationsSw();
case 'th': return DerivMobileChartWrapperLocalizationsTh();
case 'tr': return DerivMobileChartWrapperLocalizationsTr();
case 'vi': return DerivMobileChartWrapperLocalizationsVi();
case 'zh': return DerivMobileChartWrapperLocalizationsZh();
}

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.'
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Arabic (`ar`).
class DerivMobileChartWrapperLocalizationsAr extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsAr([String locale = 'ar']) : super(locale);

@override
String get labelIndicators => 'المؤشرات';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Bengali Bangla (`bn`).
class DerivMobileChartWrapperLocalizationsBn extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsBn([String locale = 'bn']) : super(locale);

@override
String get labelIndicators => 'সূচক';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for German (`de`).
class DerivMobileChartWrapperLocalizationsDe extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsDe([String locale = 'de']) : super(locale);

@override
String get labelIndicators => 'Indikatoren';
}
Original file line number Diff line number Diff line change
@@ -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';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Spanish Castilian (`es`).
class DerivMobileChartWrapperLocalizationsEs extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsEs([String locale = 'es']) : super(locale);

@override
String get labelIndicators => 'Indicadores';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for French (`fr`).
class DerivMobileChartWrapperLocalizationsFr extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsFr([String locale = 'fr']) : super(locale);

@override
String get labelIndicators => 'Indicateurs';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Italian (`it`).
class DerivMobileChartWrapperLocalizationsIt extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsIt([String locale = 'it']) : super(locale);

@override
String get labelIndicators => 'Indicatori';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Korean (`ko`).
class DerivMobileChartWrapperLocalizationsKo extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsKo([String locale = 'ko']) : super(locale);

@override
String get labelIndicators => '지표';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Polish (`pl`).
class DerivMobileChartWrapperLocalizationsPl extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsPl([String locale = 'pl']) : super(locale);

@override
String get labelIndicators => 'Wskaźniki';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Portuguese (`pt`).
class DerivMobileChartWrapperLocalizationsPt extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsPt([String locale = 'pt']) : super(locale);

@override
String get labelIndicators => 'Indicadores';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Russian (`ru`).
class DerivMobileChartWrapperLocalizationsRu extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsRu([String locale = 'ru']) : super(locale);

@override
String get labelIndicators => 'Индикаторы';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Sinhala Sinhalese (`si`).
class DerivMobileChartWrapperLocalizationsSi extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsSi([String locale = 'si']) : super(locale);

@override
String get labelIndicators => 'දර්ශක';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Swahili (`sw`).
class DerivMobileChartWrapperLocalizationsSw extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsSw([String locale = 'sw']) : super(locale);

@override
String get labelIndicators => 'Viashiria';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Thai (`th`).
class DerivMobileChartWrapperLocalizationsTh extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsTh([String locale = 'th']) : super(locale);

@override
String get labelIndicators => 'ตัวบ่งชี้';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Turkish (`tr`).
class DerivMobileChartWrapperLocalizationsTr extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsTr([String locale = 'tr']) : super(locale);

@override
String get labelIndicators => 'Göstergeler';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Vietnamese (`vi`).
class DerivMobileChartWrapperLocalizationsVi extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsVi([String locale = 'vi']) : super(locale);

@override
String get labelIndicators => 'Các chỉ số';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'deriv_mobile_chart_wrapper_localizations.dart';

/// The translations for Chinese (`zh`).
class DerivMobileChartWrapperLocalizationsZh extends DerivMobileChartWrapperLocalizations {
DerivMobileChartWrapperLocalizationsZh([String locale = 'zh']) : super(locale);

@override
String get labelIndicators => '指標';
}
Original file line number Diff line number Diff line change
Expand Up @@ -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?';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 จะถูกบันทึกไว้ที่ไหน?';
Expand Down
Loading
Loading