l10n.dart 9.88 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449
// 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);
  }

  /// `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(at least 6)`
  String get inputPasswordHint {
    return Intl.message(
      'Please enter the password(at least 6)',
      name: 'inputPasswordHint',
      desc: 'Please enter the password(at least 6)',
      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 email address`
  String get inputEmailHint {
    return Intl.message(
      'Please enter email address',
      name: 'inputEmailHint',
      desc: 'Please enter email address',
      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: [],
    );
  }

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

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

  /// `Privacy Policy`
  String get privacy_policy {
    return Intl.message(
      'Privacy Policy',
      name: 'privacy_policy',
      desc: 'Privacy Policy',
      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) {
    for (var supportedLocale in supportedLocales) {
      if (supportedLocale.languageCode == locale.languageCode) {
        return true;
      }
    }
    return false;
  }
}