l10n.dart 8.65 KB
// 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

class S {
  S();

  static S 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;
      S.current = S();

      return S.current;
    });
  }

  static S of(BuildContext context) {
    return Localizations.of<S>(context, S);
  }

  /// `One Poem`
  String get title {
    return Intl.message(
      'One Poem',
      name: 'title',
      desc: 'Title for the application',
      args: [],
    );
  }

  /// `Verification Code Login`
  String get verificationCodeLogin {
    return Intl.message(
      'Verification Code Login',
      name: 'verificationCodeLogin',
      desc: 'Title for the Login page',
      args: [],
    );
  }

  /// `Password Login`
  String get passwordLogin {
    return Intl.message(
      'Password Login',
      name: 'passwordLogin',
      desc: 'Password Login',
      args: [],
    );
  }

  /// `Login`
  String get login {
    return Intl.message(
      'Login',
      name: 'login',
      desc: 'Login',
      args: [],
    );
  }

  /// `Forgot Password`
  String get forgotPasswordLink {
    return Intl.message(
      'Forgot Password',
      name: 'forgotPasswordLink',
      desc: 'Forgot Password',
      args: [],
    );
  }

  /// `Please enter the password`
  String get inputPasswordHint {
    return Intl.message(
      'Please enter the password',
      name: 'inputPasswordHint',
      desc: 'Please enter the password',
      args: [],
    );
  }

  /// `Please input username`
  String get inputUsernameHint {
    return Intl.message(
      'Please input username',
      name: 'inputUsernameHint',
      desc: 'Please input username',
      args: [],
    );
  }

  /// `No account yet? Register now`
  String get noAccountRegisterLink {
    return Intl.message(
      'No account yet? Register now',
      name: 'noAccountRegisterLink',
      desc: 'No account yet? Register now',
      args: [],
    );
  }

  /// `Register`
  String get register {
    return Intl.message(
      'Register',
      name: 'register',
      desc: 'Register',
      args: [],
    );
  }

  /// `Open your account`
  String get openYourAccount {
    return Intl.message(
      'Open your account',
      name: 'openYourAccount',
      desc: 'Open your account',
      args: [],
    );
  }

  /// `Please enter phone number`
  String get inputPhoneHint {
    return Intl.message(
      'Please enter phone number',
      name: 'inputPhoneHint',
      desc: 'Please enter phone number',
      args: [],
    );
  }

  /// `Please enter verification code`
  String get inputVerificationCodeHint {
    return Intl.message(
      'Please enter verification code',
      name: 'inputVerificationCodeHint',
      desc: 'Please enter verification code',
      args: [],
    );
  }

  /// `Please input valid mobile phone number`
  String get inputPhoneInvalid {
    return Intl.message(
      'Please input valid mobile phone number',
      name: 'inputPhoneInvalid',
      desc: 'Please input valid mobile phone number',
      args: [],
    );
  }

  /// `Not really sent, just log in!`
  String get verificationButton {
    return Intl.message(
      'Not really sent, just log in!',
      name: 'verificationButton',
      desc: 'Not really sent, just log in!',
      args: [],
    );
  }

  /// `Get verification code`
  String get getVerificationCode {
    return Intl.message(
      'Get verification code',
      name: 'getVerificationCode',
      desc: 'Get verification code',
      args: [],
    );
  }

  /// `Confirm`
  String get confirm {
    return Intl.message(
      'Confirm',
      name: 'confirm',
      desc: '',
      args: [],
    );
  }

  /// `Reset Login Password`
  String get resetLoginPassword {
    return Intl.message(
      'Reset Login Password',
      name: 'resetLoginPassword',
      desc: 'Reset login password',
      args: [],
    );
  }

  /// `Unregistered mobile phone number, please `
  String get registeredTips {
    return Intl.message(
      'Unregistered mobile phone number, please ',
      name: 'registeredTips',
      desc: 'Registered Tips',
      args: [],
    );
  }

  /// `Poem`
  String get onePoemBottomNavigationBarItemTitle {
    return Intl.message(
      'Poem',
      name: 'onePoemBottomNavigationBarItemTitle',
      desc: 'One Poem',
      args: [],
    );
  }

  /// `timeline`
  String get timelineBottomNavigationBarItemTitle {
    return Intl.message(
      'timeline',
      name: 'timelineBottomNavigationBarItemTitle',
      desc: 'One Poem',
      args: [],
    );
  }

  /// `category`
  String get categoryBottomNavigationBarItemTitle {
    return Intl.message(
      'category',
      name: 'categoryBottomNavigationBarItemTitle',
      desc: 'One Poem',
      args: [],
    );
  }

  /// `profile`
  String get profileBottomNavigationBarItemTitle {
    return Intl.message(
      'profile',
      name: 'profileBottomNavigationBarItemTitle',
      desc: 'One Poem',
      args: [],
    );
  }

  /// `User Info`
  String get accountEditPageUserInfo {
    return Intl.message(
      'User Info',
      name: 'accountEditPageUserInfo',
      desc: '',
      args: [],
    );
  }

  /// `User Name`
  String get accountEditPageUserName {
    return Intl.message(
      'User Name',
      name: 'accountEditPageUserName',
      desc: 'User Name',
      args: [],
    );
  }

  /// `Please input User Name`
  String get accountEditPageUserNamePlaceholder {
    return Intl.message(
      'Please input User Name',
      name: 'accountEditPageUserNamePlaceholder',
      desc: 'User Name',
      args: [],
    );
  }

  /// `Email`
  String get accountEditPageUserEmail {
    return Intl.message(
      'Email',
      name: 'accountEditPageUserEmail',
      desc: 'User Name',
      args: [],
    );
  }

  /// `Please input Email`
  String get accountEditPageUserEmailPlaceholder {
    return Intl.message(
      'Please input Email',
      name: 'accountEditPageUserEmailPlaceholder',
      desc: 'Email',
      args: [],
    );
  }

  /// `Phone`
  String get accountEditPageUserPhone {
    return Intl.message(
      'Phone',
      name: 'accountEditPageUserPhone',
      desc: 'Phone',
      args: [],
    );
  }

  /// `Please input Phone`
  String get accountEditPageUserPhonePlaceholder {
    return Intl.message(
      'Please input Phone',
      name: 'accountEditPageUserPhonePlaceholder',
      desc: 'Phone',
      args: [],
    );
  }

  /// `Gender`
  String get accountEditPageUserGender {
    return Intl.message(
      'Gender',
      name: 'accountEditPageUserGender',
      desc: 'Gender',
      args: [],
    );
  }

  /// `Please choose gender`
  String get accountEditPageUserGenderPlaceholder {
    return Intl.message(
      'Please choose gender',
      name: 'accountEditPageUserGenderPlaceholder',
      desc: 'Gender',
      args: [],
    );
  }

  /// `Birthday`
  String get accountEditPageUserBirthday {
    return Intl.message(
      'Birthday',
      name: 'accountEditPageUserBirthday',
      desc: 'Birthday',
      args: [],
    );
  }

  /// `Please input birthday`
  String get accountEditPageUserBirthdayPlaceholder {
    return Intl.message(
      'Please input birthday',
      name: 'accountEditPageUserBirthdayPlaceholder',
      desc: 'Birthday',
      args: [],
    );
  }
}

class AppLocalizationDelegate extends LocalizationsDelegate<S> {
  const AppLocalizationDelegate();

  List<Locale> get supportedLocales {
    return const <Locale>[
      Locale.fromSubtags(languageCode: 'en'),
      Locale.fromSubtags(languageCode: 'zh'),
    ];
  }

  @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) {
    if (locale != null) {
      for (var supportedLocale in supportedLocales) {
        if (supportedLocale.languageCode == locale.languageCode) {
          return true;
        }
      }
    }
    return false;
  }
}