l10n.dart 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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. /// `Other`
  259. String get other {
  260. return Intl.message(
  261. 'Other',
  262. name: 'other',
  263. desc: '',
  264. args: [],
  265. );
  266. }
  267. }
  268. class AppLocalizationDelegate extends LocalizationsDelegate<S> {
  269. const AppLocalizationDelegate();
  270. List<Locale> get supportedLocales {
  271. return const <Locale>[
  272. Locale.fromSubtags(languageCode: 'en'),
  273. Locale.fromSubtags(languageCode: 'zh', countryCode: 'CN'),
  274. Locale.fromSubtags(languageCode: 'zh', countryCode: 'HK'),
  275. ];
  276. }
  277. @override
  278. bool isSupported(Locale locale) => _isSupported(locale);
  279. @override
  280. Future<S> load(Locale locale) => S.load(locale);
  281. @override
  282. bool shouldReload(AppLocalizationDelegate old) => false;
  283. bool _isSupported(Locale locale) {
  284. for (var supportedLocale in supportedLocales) {
  285. if (supportedLocale.languageCode == locale.languageCode) {
  286. return true;
  287. }
  288. }
  289. return false;
  290. }
  291. }