update frameworks/intl/src/locale_config.cpp.

Signed-off-by: LY <liuyong235@huawei.com>
This commit is contained in:
LY 2024-08-28 09:44:12 +00:00 committed by Gitee
parent b25e685188
commit 9595cfda44
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;
}