languages.dart 486 B

1234567891011121314151617181920212223
  1. import 'dart:ui';
  2. import 'package:get/get.dart';
  3. import 'lang/en_US.dart';
  4. import 'lang/zh_HK.dart';
  5. import 'lang/zh_Hans.dart';
  6. class Languages extends Translations {
  7. static Locale? get locale => Get.deviceLocale;
  8. static Locale fallbackLocale = const Locale('zh', 'CN');
  9. @override
  10. Map<String, Map<String, String>> get keys => {
  11. 'zh_Hans': zh_Hans,
  12. 'zh_Hans_CN': zh_Hans,
  13. 'zh_CN': zh_Hans,
  14. 'zh_HK': zh_HK,
  15. 'en_US': en_US
  16. };
  17. }