getLanguageEnvConvertValue static method

String getLanguageEnvConvertValue(
  1. String value
)

根据当前语言环境进行转换获取值

Implementation

static String getLanguageEnvConvertValue(String value) {
  String newValue = '';
  switch (_currentLanguageEnv) {
    case 'US':
      newValue = _mapInfo['US'][value] ?? value;
      break;
    case 'CH':
    default:
      newValue = value;
      break;
  }

  return newValue;
}