123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- // GENERATED CODE - DO NOT MODIFY BY HAND
- import 'package:flutter/material.dart';
- import 'package:intl/intl.dart';
- import 'intl/messages_all.dart';
- // **************************************************************************
- // Generator: Flutter Intl IDE plugin
- // Made by Localizely
- // **************************************************************************
- // ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars
- // ignore_for_file: join_return_with_assignment, prefer_final_in_for_each
- // ignore_for_file: avoid_redundant_argument_values, avoid_escaping_inner_quotes
- class S {
- S();
- static S? _current;
- static S get current {
- assert(_current != null,
- 'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.');
- return _current!;
- }
- static const AppLocalizationDelegate delegate = AppLocalizationDelegate();
- static Future<S> load(Locale locale) {
- final name = (locale.countryCode?.isEmpty ?? false)
- ? locale.languageCode
- : locale.toString();
- final localeName = Intl.canonicalizedLocale(name);
- return initializeMessages(localeName).then((_) {
- Intl.defaultLocale = localeName;
- final instance = S();
- S._current = instance;
- return instance;
- });
- }
- static S of(BuildContext context) {
- final instance = S.maybeOf(context);
- assert(instance != null,
- 'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?');
- return instance!;
- }
- static S? maybeOf(BuildContext context) {
- return Localizations.of<S>(context, S);
- }
- /// `Payment`
- String get payment {
- return Intl.message(
- 'Payment',
- name: 'payment',
- desc: '',
- args: [],
- );
- }
- /// `Rewards`
- String get rewards {
- return Intl.message(
- 'Rewards',
- name: 'rewards',
- desc: '',
- args: [],
- );
- }
- /// `Notification`
- String get notification {
- return Intl.message(
- 'Notification',
- name: 'notification',
- desc: '',
- args: [],
- );
- }
- /// `Facility`
- String get facility {
- return Intl.message(
- 'Facility',
- name: 'facility',
- desc: '',
- args: [],
- );
- }
- /// `Form`
- String get form {
- return Intl.message(
- 'Form',
- name: 'form',
- desc: '',
- args: [],
- );
- }
- /// `Notice Board`
- String get notice_board {
- return Intl.message(
- 'Notice Board',
- name: 'notice_board',
- desc: '',
- args: [],
- );
- }
- /// `Phone/Email`
- String get phone_email {
- return Intl.message(
- 'Phone/Email',
- name: 'phone_email',
- desc: '',
- args: [],
- );
- }
- /// `Password`
- String get password {
- return Intl.message(
- 'Password',
- name: 'password',
- desc: '',
- args: [],
- );
- }
- /// `Log In`
- String get login {
- return Intl.message(
- 'Log In',
- name: 'login',
- desc: '',
- args: [],
- );
- }
- /// `Forgot Password?`
- String get forgot_password {
- return Intl.message(
- 'Forgot Password?',
- name: 'forgot_password',
- desc: '',
- args: [],
- );
- }
- /// `Create New YY Home Account`
- String get create_new_yy_home_account {
- return Intl.message(
- 'Create New YY Home Account',
- name: 'create_new_yy_home_account',
- desc: '',
- args: [],
- );
- }
- /// `Agree to`
- String get agree_to {
- return Intl.message(
- 'Agree to',
- name: 'agree_to',
- desc: '',
- args: [],
- );
- }
- /// `Terms of Service`
- String get terms_of_service {
- return Intl.message(
- 'Terms of Service',
- name: 'terms_of_service',
- desc: '',
- args: [],
- );
- }
- /// `Enter your email and mobile phone number`
- String get forgot_text {
- return Intl.message(
- 'Enter your email and mobile phone number',
- name: 'forgot_text',
- desc: '',
- args: [],
- );
- }
- /// `Email`
- String get email {
- return Intl.message(
- 'Email',
- name: 'email',
- desc: '',
- args: [],
- );
- }
- /// `Mobile Phone`
- String get mobile_phone {
- return Intl.message(
- 'Mobile Phone',
- name: 'mobile_phone',
- desc: '',
- args: [],
- );
- }
- /// `Next`
- String get next {
- return Intl.message(
- 'Next',
- name: 'next',
- desc: '',
- args: [],
- );
- }
- /// `Verification Code`
- String get verification_code {
- return Intl.message(
- 'Verification Code',
- name: 'verification_code',
- desc: '',
- args: [],
- );
- }
- /// `Reset Password`
- String get reset_password {
- return Intl.message(
- 'Reset Password',
- name: 'reset_password',
- desc: '',
- args: [],
- );
- }
- /// `Confirm Password`
- String get confirm_password {
- return Intl.message(
- 'Confirm Password',
- name: 'confirm_password',
- desc: '',
- args: [],
- );
- }
- /// `8 Digits Alphanumeric`
- String get password_format {
- return Intl.message(
- '8 Digits Alphanumeric',
- name: 'password_format',
- desc: '',
- args: [],
- );
- }
- /// `Get Code`
- String get get_code {
- return Intl.message(
- 'Get Code',
- name: 'get_code',
- desc: '',
- args: [],
- );
- }
- /// `First Name`
- String get first_name {
- return Intl.message(
- 'First Name',
- name: 'first_name',
- desc: '',
- args: [],
- );
- }
- /// `Last Name`
- String get last_name {
- return Intl.message(
- 'Last Name',
- name: 'last_name',
- desc: '',
- args: [],
- );
- }
- /// `Other`
- String get other {
- return Intl.message(
- 'Other',
- name: 'other',
- desc: '',
- args: [],
- );
- }
- }
- class AppLocalizationDelegate extends LocalizationsDelegate<S> {
- const AppLocalizationDelegate();
- List<Locale> get supportedLocales {
- return const <Locale>[
- Locale.fromSubtags(languageCode: 'en'),
- Locale.fromSubtags(languageCode: 'zh', countryCode: 'CN'),
- Locale.fromSubtags(languageCode: 'zh', countryCode: 'HK'),
- ];
- }
- @override
- bool isSupported(Locale locale) => _isSupported(locale);
- @override
- Future<S> load(Locale locale) => S.load(locale);
- @override
- bool shouldReload(AppLocalizationDelegate old) => false;
- bool _isSupported(Locale locale) {
- for (var supportedLocale in supportedLocales) {
- if (supportedLocale.languageCode == locale.languageCode) {
- return true;
- }
- }
- return false;
- }
- }
|