translation_service.dart 474 B

1234567891011121314151617181920
  1. import 'package:flutter/material.dart';
  2. import 'package:get/get.dart';
  3. import 'en_US.dart';
  4. import 'vi_VN.dart';
  5. import 'zh_CN.dart';
  6. import 'ko_KR.dart';
  7. class TranslationService extends Translations {
  8. static Locale? get locale => Get.deviceLocale;
  9. static const fallbackLocale = Locale('en', 'US');
  10. @override
  11. Map<String, Map<String, String>> get keys => {
  12. 'en_US': en_US,
  13. 'zh_CN': zh_CN,
  14. 'vi_VN': vi_VN,
  15. 'ko_KR': ko_KR,
  16. };
  17. }