l10n.dart 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. import 'package:flutter/material.dart';
  3. import 'package:intl/intl.dart';
  4. import 'intl/messages_all.dart';
  5. // **************************************************************************
  6. // Generator: Flutter Intl IDE plugin
  7. // Made by Localizely
  8. // **************************************************************************
  9. // ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars
  10. // ignore_for_file: join_return_with_assignment, prefer_final_in_for_each
  11. // ignore_for_file: avoid_redundant_argument_values, avoid_escaping_inner_quotes
  12. class S {
  13. S();
  14. static S? _current;
  15. static S get current {
  16. assert(_current != null,
  17. 'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.');
  18. return _current!;
  19. }
  20. static const AppLocalizationDelegate delegate = AppLocalizationDelegate();
  21. static Future<S> load(Locale locale) {
  22. final name = (locale.countryCode?.isEmpty ?? false)
  23. ? locale.languageCode
  24. : locale.toString();
  25. final localeName = Intl.canonicalizedLocale(name);
  26. return initializeMessages(localeName).then((_) {
  27. Intl.defaultLocale = localeName;
  28. final instance = S();
  29. S._current = instance;
  30. return instance;
  31. });
  32. }
  33. static S of(BuildContext context) {
  34. final instance = S.maybeOf(context);
  35. assert(instance != null,
  36. 'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?');
  37. return instance!;
  38. }
  39. static S? maybeOf(BuildContext context) {
  40. return Localizations.of<S>(context, S);
  41. }
  42. /// `Payment`
  43. String get payment {
  44. return Intl.message(
  45. 'Payment',
  46. name: 'payment',
  47. desc: '',
  48. args: [],
  49. );
  50. }
  51. /// `Rewards`
  52. String get rewards {
  53. return Intl.message(
  54. 'Rewards',
  55. name: 'rewards',
  56. desc: '',
  57. args: [],
  58. );
  59. }
  60. /// `Notification`
  61. String get notification {
  62. return Intl.message(
  63. 'Notification',
  64. name: 'notification',
  65. desc: '',
  66. args: [],
  67. );
  68. }
  69. /// `Facility`
  70. String get facility {
  71. return Intl.message(
  72. 'Facility',
  73. name: 'facility',
  74. desc: '',
  75. args: [],
  76. );
  77. }
  78. /// `Form`
  79. String get form {
  80. return Intl.message(
  81. 'Form',
  82. name: 'form',
  83. desc: '',
  84. args: [],
  85. );
  86. }
  87. /// `Notice Board`
  88. String get notice_board {
  89. return Intl.message(
  90. 'Notice Board',
  91. name: 'notice_board',
  92. desc: '',
  93. args: [],
  94. );
  95. }
  96. /// `Phone/Email`
  97. String get phone_email {
  98. return Intl.message(
  99. 'Phone/Email',
  100. name: 'phone_email',
  101. desc: '',
  102. args: [],
  103. );
  104. }
  105. /// `Password`
  106. String get password {
  107. return Intl.message(
  108. 'Password',
  109. name: 'password',
  110. desc: '',
  111. args: [],
  112. );
  113. }
  114. /// `Log In`
  115. String get login {
  116. return Intl.message(
  117. 'Log In',
  118. name: 'login',
  119. desc: '',
  120. args: [],
  121. );
  122. }
  123. /// `Forgot Password?`
  124. String get forgot_password {
  125. return Intl.message(
  126. 'Forgot Password?',
  127. name: 'forgot_password',
  128. desc: '',
  129. args: [],
  130. );
  131. }
  132. /// `Create New YY Home Account`
  133. String get create_new_yy_home_account {
  134. return Intl.message(
  135. 'Create New YY Home Account',
  136. name: 'create_new_yy_home_account',
  137. desc: '',
  138. args: [],
  139. );
  140. }
  141. /// `Agree to`
  142. String get agree_to {
  143. return Intl.message(
  144. 'Agree to',
  145. name: 'agree_to',
  146. desc: '',
  147. args: [],
  148. );
  149. }
  150. /// `Terms of Service`
  151. String get terms_of_service {
  152. return Intl.message(
  153. 'Terms of Service',
  154. name: 'terms_of_service',
  155. desc: '',
  156. args: [],
  157. );
  158. }
  159. /// `Enter your email and mobile phone number`
  160. String get forgot_text {
  161. return Intl.message(
  162. 'Enter your email and mobile phone number',
  163. name: 'forgot_text',
  164. desc: '',
  165. args: [],
  166. );
  167. }
  168. /// `Email`
  169. String get email {
  170. return Intl.message(
  171. 'Email',
  172. name: 'email',
  173. desc: '',
  174. args: [],
  175. );
  176. }
  177. /// `Mobile Phone`
  178. String get mobile_phone {
  179. return Intl.message(
  180. 'Mobile Phone',
  181. name: 'mobile_phone',
  182. desc: '',
  183. args: [],
  184. );
  185. }
  186. /// `Next`
  187. String get next {
  188. return Intl.message(
  189. 'Next',
  190. name: 'next',
  191. desc: '',
  192. args: [],
  193. );
  194. }
  195. /// `Verification Code`
  196. String get verification_code {
  197. return Intl.message(
  198. 'Verification Code',
  199. name: 'verification_code',
  200. desc: '',
  201. args: [],
  202. );
  203. }
  204. /// `Reset Password`
  205. String get reset_password {
  206. return Intl.message(
  207. 'Reset Password',
  208. name: 'reset_password',
  209. desc: '',
  210. args: [],
  211. );
  212. }
  213. /// `Confirm Password`
  214. String get confirm_password {
  215. return Intl.message(
  216. 'Confirm Password',
  217. name: 'confirm_password',
  218. desc: '',
  219. args: [],
  220. );
  221. }
  222. /// `8 Digits Alphanumeric`
  223. String get password_format {
  224. return Intl.message(
  225. '8 Digits Alphanumeric',
  226. name: 'password_format',
  227. desc: '',
  228. args: [],
  229. );
  230. }
  231. /// `Get Code`
  232. String get get_code {
  233. return Intl.message(
  234. 'Get Code',
  235. name: 'get_code',
  236. desc: '',
  237. args: [],
  238. );
  239. }
  240. /// `First Name`
  241. String get first_name {
  242. return Intl.message(
  243. 'First Name',
  244. name: 'first_name',
  245. desc: '',
  246. args: [],
  247. );
  248. }
  249. /// `Last Name`
  250. String get last_name {
  251. return Intl.message(
  252. 'Last Name',
  253. name: 'last_name',
  254. desc: '',
  255. args: [],
  256. );
  257. }
  258. /// `We have sent you an SMS verification code Please enter it below`
  259. String get sign_up_verify_txt {
  260. return Intl.message(
  261. 'We have sent you an SMS verification code Please enter it below',
  262. name: 'sign_up_verify_txt',
  263. desc: '',
  264. args: [],
  265. );
  266. }
  267. /// `Did Not Receive?`
  268. String get did_not_receive {
  269. return Intl.message(
  270. 'Did Not Receive?',
  271. name: 'did_not_receive',
  272. desc: '',
  273. args: [],
  274. );
  275. }
  276. /// `Resend Code`
  277. String get resend_code {
  278. return Intl.message(
  279. 'Resend Code',
  280. name: 'resend_code',
  281. desc: '',
  282. args: [],
  283. );
  284. }
  285. /// `You have`
  286. String get you_have {
  287. return Intl.message(
  288. 'You have',
  289. name: 'you_have',
  290. desc: '',
  291. args: [],
  292. );
  293. }
  294. /// `Tries Left`
  295. String get tries_left {
  296. return Intl.message(
  297. 'Tries Left',
  298. name: 'tries_left',
  299. desc: '',
  300. args: [],
  301. );
  302. }
  303. /// `Welcome {name}`
  304. String welcome_name(Object name) {
  305. return Intl.message(
  306. 'Welcome $name',
  307. name: 'welcome_name',
  308. desc: '',
  309. args: [name],
  310. );
  311. }
  312. /// `You have successfully created an YY Home account`
  313. String get sign_up_success_txt1 {
  314. return Intl.message(
  315. 'You have successfully created an YY Home account',
  316. name: 'sign_up_success_txt1',
  317. desc: '',
  318. args: [],
  319. );
  320. }
  321. /// `Your username is your email address and please keep your password safe`
  322. String get sign_up_success_txt2 {
  323. return Intl.message(
  324. 'Your username is your email address and please keep your password safe',
  325. name: 'sign_up_success_txt2',
  326. desc: '',
  327. args: [],
  328. );
  329. }
  330. /// `Now, let's get you connected to your estate and community`
  331. String get sign_up_success_txt3 {
  332. return Intl.message(
  333. 'Now, let\'s get you connected to your estate and community',
  334. name: 'sign_up_success_txt3',
  335. desc: '',
  336. args: [],
  337. );
  338. }
  339. /// `let's get started`
  340. String get get_started {
  341. return Intl.message(
  342. 'let\'s get started',
  343. name: 'get_started',
  344. desc: '',
  345. args: [],
  346. );
  347. }
  348. /// `YY Home Accounts`
  349. String get yy_home_accounts {
  350. return Intl.message(
  351. 'YY Home Accounts',
  352. name: 'yy_home_accounts',
  353. desc: '',
  354. args: [],
  355. );
  356. }
  357. /// `Block`
  358. String get block {
  359. return Intl.message(
  360. 'Block',
  361. name: 'block',
  362. desc: '',
  363. args: [],
  364. );
  365. }
  366. /// `Unit Number`
  367. String get unit_number {
  368. return Intl.message(
  369. 'Unit Number',
  370. name: 'unit_number',
  371. desc: '',
  372. args: [],
  373. );
  374. }
  375. /// `Block refers to the street number of the unit's official mailing address`
  376. String get block_desc {
  377. return Intl.message(
  378. 'Block refers to the street number of the unit\'s official mailing address',
  379. name: 'block_desc',
  380. desc: '',
  381. args: [],
  382. );
  383. }
  384. /// `123 Example Road #08-08 Country 123456`
  385. String get block_example {
  386. return Intl.message(
  387. '123 Example Road #08-08 Country 123456',
  388. name: 'block_example',
  389. desc: '',
  390. args: [],
  391. );
  392. }
  393. /// `123 is the block number #08-08 is the unit number`
  394. String get block_example_desc {
  395. return Intl.message(
  396. '123 is the block number #08-08 is the unit number',
  397. name: 'block_example_desc',
  398. desc: '',
  399. args: [],
  400. );
  401. }
  402. /// `Estate or Building Name?`
  403. String get estate_or_building_name {
  404. return Intl.message(
  405. 'Estate or Building Name?',
  406. name: 'estate_or_building_name',
  407. desc: '',
  408. args: [],
  409. );
  410. }
  411. /// `Type Here`
  412. String get type_here {
  413. return Intl.message(
  414. 'Type Here',
  415. name: 'type_here',
  416. desc: '',
  417. args: [],
  418. );
  419. }
  420. /// `Tell us the name of the estateor building you are applying to`
  421. String get estate_name_desc {
  422. return Intl.message(
  423. 'Tell us the name of the estateor building you are applying to',
  424. name: 'estate_name_desc',
  425. desc: '',
  426. args: [],
  427. );
  428. }
  429. /// `Are you an owner or tenant?`
  430. String get owner_or_tenant {
  431. return Intl.message(
  432. 'Are you an owner or tenant?',
  433. name: 'owner_or_tenant',
  434. desc: '',
  435. args: [],
  436. );
  437. }
  438. /// `Owner`
  439. String get owner {
  440. return Intl.message(
  441. 'Owner',
  442. name: 'owner',
  443. desc: '',
  444. args: [],
  445. );
  446. }
  447. /// `Tenant`
  448. String get tenant {
  449. return Intl.message(
  450. 'Tenant',
  451. name: 'tenant',
  452. desc: '',
  453. args: [],
  454. );
  455. }
  456. /// `Who are owners?`
  457. String get who_are_owners {
  458. return Intl.message(
  459. 'Who are owners?',
  460. name: 'who_are_owners',
  461. desc: '',
  462. args: [],
  463. );
  464. }
  465. /// `My name is in the strata title`
  466. String get owners_desc1 {
  467. return Intl.message(
  468. 'My name is in the strata title',
  469. name: 'owners_desc1',
  470. desc: '',
  471. args: [],
  472. );
  473. }
  474. /// `My name is in the strata title and l have rented out my unit`
  475. String get owners_desc2 {
  476. return Intl.message(
  477. 'My name is in the strata title and l have rented out my unit',
  478. name: 'owners_desc2',
  479. desc: '',
  480. args: [],
  481. );
  482. }
  483. /// `I live in the same household as the named owner`
  484. String get owners_desc3 {
  485. return Intl.message(
  486. 'I live in the same household as the named owner',
  487. name: 'owners_desc3',
  488. desc: '',
  489. args: [],
  490. );
  491. }
  492. /// `I am the shareholder of the company that owns the unit`
  493. String get owners_desc4 {
  494. return Intl.message(
  495. 'I am the shareholder of the company that owns the unit',
  496. name: 'owners_desc4',
  497. desc: '',
  498. args: [],
  499. );
  500. }
  501. /// `The Management will verify your application accordingly`
  502. String get owners_desc5 {
  503. return Intl.message(
  504. 'The Management will verify your application accordingly',
  505. name: 'owners_desc5',
  506. desc: '',
  507. args: [],
  508. );
  509. }
  510. /// `Who are tenants?`
  511. String get who_are_tenants {
  512. return Intl.message(
  513. 'Who are tenants?',
  514. name: 'who_are_tenants',
  515. desc: '',
  516. args: [],
  517. );
  518. }
  519. /// `My name is in the lease agreement`
  520. String get tenants_desc1 {
  521. return Intl.message(
  522. 'My name is in the lease agreement',
  523. name: 'tenants_desc1',
  524. desc: '',
  525. args: [],
  526. );
  527. }
  528. /// `I live in the same household as the named tenant`
  529. String get tenants_desc2 {
  530. return Intl.message(
  531. 'I live in the same household as the named tenant',
  532. name: 'tenants_desc2',
  533. desc: '',
  534. args: [],
  535. );
  536. }
  537. /// `I am the tenant of the company that rented the unit`
  538. String get tenants_desc3 {
  539. return Intl.message(
  540. 'I am the tenant of the company that rented the unit',
  541. name: 'tenants_desc3',
  542. desc: '',
  543. args: [],
  544. );
  545. }
  546. /// `The Management will verify your application accordingly`
  547. String get tenants_desc4 {
  548. return Intl.message(
  549. 'The Management will verify your application accordingly',
  550. name: 'tenants_desc4',
  551. desc: '',
  552. args: [],
  553. );
  554. }
  555. /// `Upload Documents`
  556. String get upload_documents {
  557. return Intl.message(
  558. 'Upload Documents',
  559. name: 'upload_documents',
  560. desc: '',
  561. args: [],
  562. );
  563. }
  564. /// `The Management requires that you upload the following documents to verify your tenancy. You may redact sensitive financia information`
  565. String get upload_doc_desc {
  566. return Intl.message(
  567. 'The Management requires that you upload the following documents to verify your tenancy. You may redact sensitive financia information',
  568. name: 'upload_doc_desc',
  569. desc: '',
  570. args: [],
  571. );
  572. }
  573. /// `(1)A valid tenancy agreement showing your name,unit numper,tenancy expiration date and a list of occupants (if applicable)`
  574. String get upload_doc_desc1 {
  575. return Intl.message(
  576. '(1)A valid tenancy agreement showing your name,unit numper,tenancy expiration date and a list of occupants (if applicable)',
  577. name: 'upload_doc_desc1',
  578. desc: '',
  579. args: [],
  580. );
  581. }
  582. /// `(2)Tenancy Agreement Stamp Duty receipt`
  583. String get upload_doc_desc2 {
  584. return Intl.message(
  585. '(2)Tenancy Agreement Stamp Duty receipt',
  586. name: 'upload_doc_desc2',
  587. desc: '',
  588. args: [],
  589. );
  590. }
  591. /// `Upload`
  592. String get upload {
  593. return Intl.message(
  594. 'Upload',
  595. name: 'upload',
  596. desc: '',
  597. args: [],
  598. );
  599. }
  600. /// `Following({count})`
  601. String following(Object count) {
  602. return Intl.message(
  603. 'Following($count)',
  604. name: 'following',
  605. desc: '',
  606. args: [count],
  607. );
  608. }
  609. /// `Followers({count})`
  610. String followers(Object count) {
  611. return Intl.message(
  612. 'Followers($count)',
  613. name: 'followers',
  614. desc: '',
  615. args: [count],
  616. );
  617. }
  618. /// `My Posts`
  619. String get my_post {
  620. return Intl.message(
  621. 'My Posts',
  622. name: 'my_post',
  623. desc: '',
  624. args: [],
  625. );
  626. }
  627. /// `Household`
  628. String get household {
  629. return Intl.message(
  630. 'Household',
  631. name: 'household',
  632. desc: '',
  633. args: [],
  634. );
  635. }
  636. /// `Estate`
  637. String get estate {
  638. return Intl.message(
  639. 'Estate',
  640. name: 'estate',
  641. desc: '',
  642. args: [],
  643. );
  644. }
  645. /// `Settings`
  646. String get settings {
  647. return Intl.message(
  648. 'Settings',
  649. name: 'settings',
  650. desc: '',
  651. args: [],
  652. );
  653. }
  654. /// `Enable Notification`
  655. String get enable_notification {
  656. return Intl.message(
  657. 'Enable Notification',
  658. name: 'enable_notification',
  659. desc: '',
  660. args: [],
  661. );
  662. }
  663. /// `Change Mobile Phone`
  664. String get change_mobile_phone {
  665. return Intl.message(
  666. 'Change Mobile Phone',
  667. name: 'change_mobile_phone',
  668. desc: '',
  669. args: [],
  670. );
  671. }
  672. /// `Privacy Policy`
  673. String get privacy_policy {
  674. return Intl.message(
  675. 'Privacy Policy',
  676. name: 'privacy_policy',
  677. desc: '',
  678. args: [],
  679. );
  680. }
  681. /// `Terms & Conditions`
  682. String get terms_conditions {
  683. return Intl.message(
  684. 'Terms & Conditions',
  685. name: 'terms_conditions',
  686. desc: '',
  687. args: [],
  688. );
  689. }
  690. /// `Account Deactivation`
  691. String get account_deactivation {
  692. return Intl.message(
  693. 'Account Deactivation',
  694. name: 'account_deactivation',
  695. desc: '',
  696. args: [],
  697. );
  698. }
  699. /// `Rate Us`
  700. String get rate_us {
  701. return Intl.message(
  702. 'Rate Us',
  703. name: 'rate_us',
  704. desc: '',
  705. args: [],
  706. );
  707. }
  708. /// `Version No.`
  709. String get version_no {
  710. return Intl.message(
  711. 'Version No.',
  712. name: 'version_no',
  713. desc: '',
  714. args: [],
  715. );
  716. }
  717. /// `Logout`
  718. String get logout {
  719. return Intl.message(
  720. 'Logout',
  721. name: 'logout',
  722. desc: '',
  723. args: [],
  724. );
  725. }
  726. /// `Old Mobile Phone`
  727. String get old_mobile_phone {
  728. return Intl.message(
  729. 'Old Mobile Phone',
  730. name: 'old_mobile_phone',
  731. desc: '',
  732. args: [],
  733. );
  734. }
  735. /// `New Mobile Phone`
  736. String get new_mobile_phone {
  737. return Intl.message(
  738. 'New Mobile Phone',
  739. name: 'new_mobile_phone',
  740. desc: '',
  741. args: [],
  742. );
  743. }
  744. /// `Submit`
  745. String get submit {
  746. return Intl.message(
  747. 'Submit',
  748. name: 'submit',
  749. desc: '',
  750. args: [],
  751. );
  752. }
  753. /// `New Password`
  754. String get new_password {
  755. return Intl.message(
  756. 'New Password',
  757. name: 'new_password',
  758. desc: '',
  759. args: [],
  760. );
  761. }
  762. /// `Confirm New Password`
  763. String get confirm_new_password {
  764. return Intl.message(
  765. 'Confirm New Password',
  766. name: 'confirm_new_password',
  767. desc: '',
  768. args: [],
  769. );
  770. }
  771. /// `Cancel`
  772. String get cancel {
  773. return Intl.message(
  774. 'Cancel',
  775. name: 'cancel',
  776. desc: '',
  777. args: [],
  778. );
  779. }
  780. /// `Confirm`
  781. String get confirm {
  782. return Intl.message(
  783. 'Confirm',
  784. name: 'confirm',
  785. desc: '',
  786. args: [],
  787. );
  788. }
  789. /// `Yes`
  790. String get yes {
  791. return Intl.message(
  792. 'Yes',
  793. name: 'yes',
  794. desc: '',
  795. args: [],
  796. );
  797. }
  798. /// `No`
  799. String get no {
  800. return Intl.message(
  801. 'No',
  802. name: 'no',
  803. desc: '',
  804. args: [],
  805. );
  806. }
  807. /// `Alert`
  808. String get alert {
  809. return Intl.message(
  810. 'Alert',
  811. name: 'alert',
  812. desc: '',
  813. args: [],
  814. );
  815. }
  816. /// `Are you sure you want to logout?`
  817. String get logout_alert {
  818. return Intl.message(
  819. 'Are you sure you want to logout?',
  820. name: 'logout_alert',
  821. desc: '',
  822. args: [],
  823. );
  824. }
  825. /// `Are you sure you want to deactivate your account? You will not be able to login into the app once you proceed with the request.`
  826. String get account_deactivate_alert {
  827. return Intl.message(
  828. 'Are you sure you want to deactivate your account? You will not be able to login into the app once you proceed with the request.',
  829. name: 'account_deactivate_alert',
  830. desc: '',
  831. args: [],
  832. );
  833. }
  834. /// `Other`
  835. String get other {
  836. return Intl.message(
  837. 'Other',
  838. name: 'other',
  839. desc: '',
  840. args: [],
  841. );
  842. }
  843. }
  844. class AppLocalizationDelegate extends LocalizationsDelegate<S> {
  845. const AppLocalizationDelegate();
  846. List<Locale> get supportedLocales {
  847. return const <Locale>[
  848. Locale.fromSubtags(languageCode: 'en'),
  849. Locale.fromSubtags(languageCode: 'zh', countryCode: 'CN'),
  850. Locale.fromSubtags(languageCode: 'zh', countryCode: 'HK'),
  851. ];
  852. }
  853. @override
  854. bool isSupported(Locale locale) => _isSupported(locale);
  855. @override
  856. Future<S> load(Locale locale) => S.load(locale);
  857. @override
  858. bool shouldReload(AppLocalizationDelegate old) => false;
  859. bool _isSupported(Locale locale) {
  860. for (var supportedLocale in supportedLocales) {
  861. if (supportedLocale.languageCode == locale.languageCode) {
  862. return true;
  863. }
  864. }
  865. return false;
  866. }
  867. }