123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import 'dart:ui';
- import 'package:fis_common/index.dart';
- import 'package:fis_common/logger/logger.dart';
- import 'package:fis_jsonrpc/rpc.dart';
- import 'package:fis_ui/index.dart';
- import 'package:flutter/material.dart';
- import 'package:get/get.dart';
- import 'interfaces/base_manager.dart';
- import 'interfaces/language.dart';
- class LanguageConfigManager extends BaseManager
- implements ILanguageConfigManager {
- /// 中文
- static const Locale CHINESE_LOCALE = const Locale("zh", "CN");
- /// 英文
- static const Locale ENGLISH_LOCALE = const Locale("en", "US");
- /// 检查翻译
- /// [code] 翻译key
- @override
- String getExamLanguageValue(String code) {
- try {
- // var value = languageService.findLanguageValueByCode('exam', code);
- // return value;
- } catch (e) {
- print(e);
- }
- return code;
- }
- /// 诊断相关翻译
- /// [code] 翻译key
- @override
- String getConsultationLanguageValue(String code) {
- try {
- // var value = languageService.findLanguageValueByCode('consultation', code);
- // return value;
- } catch (e) {
- print(e);
- }
- return code;
- }
- /// 器官部位相关翻译
- /// [code] 翻译key
- @override
- String getApplicationLanguageValue(String code) {
- try {
- // var value = languageService.findLanguageValueByCode('application', code);
- // return value;
- } catch (e) {
- print(e);
- }
- return code;
- }
- @override
- Future<bool> swithLanguageByCode(String languageCode) async {
- Locale locale;
- bool result = false;
- return result;
- }
- }
|