dreampad/lib/app/lang/translation_service.dart

16 lines
384 B
Dart
Raw Permalink Normal View History

2023-11-28 10:44:58 +08:00
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'en_US.dart';
import 'zh_CN.dart';
class TranslationService extends Translations {
static Locale? get locale => Get.deviceLocale;
static const fallbackLocale = Locale('zh', 'CH');
@override
Map<String, Map<String, String>> get keys => {
'en_US': en_US,
'zh_CN': zh_CN,
};
}