mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-23 15:10:32 +00:00
update frameworks/intl/src/locale_config.cpp.
Signed-off-by: LY <liuyong235@huawei.com>
This commit is contained in:
parent
b25e685188
commit
9595cfda44
@ -289,6 +289,9 @@ string LocaleConfig::GetSystemLanguage()
|
||||
if (systemLanguage.empty()) {
|
||||
systemLanguage = ReadSystemParameter(DEFAULT_LANGUAGE_KEY, CONFIG_LEN);
|
||||
}
|
||||
if (systemLanguage == "zh-Hant" && GetSystemRegion() == "HK") {
|
||||
return "zh-Hant-HK";
|
||||
}
|
||||
return systemLanguage;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user