translation_service.dart 429 B

123456789101112131415161718
  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. class TranslationService extends Translations {
  7. static Locale? get locale => Get.deviceLocale;
  8. static const fallbackLocale = Locale('en', 'US');
  9. @override
  10. Map<String, Map<String, String>> get keys => {
  11. 'en_US': en_US,
  12. 'zh_CN': zh_CN,
  13. 'vi_VN': vi_VN,
  14. };
  15. }