openharmony 鸿蒙 changelogs-i18n

2025-06-12 浏览 (1)

Globalization Subsystem Changelog

cl.global.1 Language Sorting Array Change

Access Level

System API

Reason for Change

The sequence of the language list array returned by the getLanguageInfoArray API is incorrect. For example, if the country/region is CN, Simplified Chinese (zh-Hans), Tibetan (bo), and Uyghur (ug) should be placed in the front.

Change Impact

The sequence of the language list array is changed.

Before:

Country/RegionInput ParameterArray Sequence
CNen,zh-Hans,bo,ug,zh-Hantzh-Hans,en,bo,ug,zh-Hant
SGbo,en,zh-Hans,ug,zh-Hantzh-Hans,en,bo,ug,zh-Hant
USzh-Hans,bo,en,ug,zh-Hanten,zh-Hant,zh-Hans,ug,bo
HKzh-Hans,bo,en,ug,zh-Hantzh-Hant,zh-Hans,en,ug,bo
TWzh-Hans,bo,en,ug,zh-Hantzh-Hant,zh-Hans,en,ug,bo
AUzh-Hans,bo,en,ug,zh-Hantzh-Hant,zh-Hans,en,ug,bo
NZzh-Hans,bo,en,ug,zh-Hantzh-Hant,zh-Hans,en,ug,bo
INzh-Hans,bo,en,ug,zh-Hantzh-Hant,zh-Hans,en,ug,bo
GBzh-Hans,bo,en,ug,zh-Hantzh-Hant,zh-Hans,en,ug,bo
MOzh-Hans,bo,en,ug,zh-Hantzh-Hant,zh-Hans,en,ug,bo
CAzh-Hans,bo,en,ug,zh-Hantzh-Hant,zh-Hans,en,ug,bo

After:

Country/RegionInput ParameterArray Sequence
CNen,zh-Hans,bo,ug,zh-Hantzh-Hans,ug,bo,zh-Hant,en
SGbo,en,zh-Hans,ug,zh-Hanten,zh-Hant,zh-Hans,ug,bo
USzh-Hans,bo,en,ug,zh-Hanten,zh-Hant,zh-Hans,ug,bo
HKzh-Hans,bo,en,ug,zh-Hantzh-Hant,en,zh-Hans,ug,bo
TWzh-Hans,bo,en,ug,zh-Hantzh-Hant,zh-Hans,en,ug,bo
AUzh-Hans,bo,en,ug,zh-Hanten,zh-Hant,zh-Hans,ug,bo
NZzh-Hans,bo,en,ug,zh-Hanten,zh-Hant,zh-Hans,ug,bo
INzh-Hans,bo,en,ug,zh-Hanten,zh-Hant,zh-Hans,ug,bo
GBzh-Hans,bo,en,ug,zh-Hanten,zh-Hant,zh-Hans,ug,bo
MOzh-Hans,bo,en,ug,zh-Hantzh-Hant,en,zh-Hans,ug,bo
CAzh-Hans,bo,en,ug,zh-Hanten,zh-Hant,zh-Hans,ug,bo

Start API Level

10

Change Since

OpenHarmony SDK 5.1.0.48

Key API/Component Changes

i18n.SystemLocaleManager.getLanguageInfoArray

Adaptation Guide

Use this API in the language list sorting scenario.

cl.global.2 Country/Region Sorting Array Change

Access Level

System API

Reason for Change

The sequence of the country/region list array returned by the getRegionInfoArray API is incorrect. For example, if the system language is simplified Chinese, only China is displayed in the front.

Change Impact

The sequence of the country/region list returned by the API is changed.

Before:

System LanguageInput ParameterArray Sequence
enHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOUS,AU,CA,IN,NZ,SG,GB,CN,HK,MO,TW
zh-HantHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOTW,HK,MO,CN,CA,IN,US,GB,NZ,SG,AU
zh-HansHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOSG,CN,MO,HK,AU,CA,US,NZ,IN,GB,TW
ugHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOUS,AU,GB,CN,MO,TW,HK,SG,CA,IN,NZ
boHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOCN,TW,HK,MO,CA,NZ,GB,SG,IN,US,AU

After:

System LanguageInput ParameterArray Sequence
enHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOAU,CA,IN,NZ,SG,GB,US,CN,HK,MO,TW
zh-HantHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOTW,HK,CN,MO,CA,IN,US,GB,NZ,SG,AU
zh-HansHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOCN,AU,CA,US,SG,NZ,IN,GB,MO,TW,HK
ugHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOCN,US,AU,GB,MO,TW,HK,SG,CA,IN,NZ
boHK,TW,CN,AU,CA,IN,NZ,SG,GB,US,MOCN,TW,HK,MO,CA,NZ,GB,SG,IN,US,AU

Start API Level

10

Change Since

OpenHarmony SDK 5.1.0.48

Key API/Component Changes

i18n.SystemLocaleManager.getRegionInfoArray

Adaptation Guide

Use this API in the country/region list sorting scenario.

cl.global.3 Language and Country/Region Mapping Change

Access Level

Public API

Reason for Change

The language and country/region matching rule is incorrect. For example, if the country/region is CN (China) and the language list contains zh-Hans (Simplified Chinese) and ug (Uyghur), the recommended language should be zh-Hans or ug. However, when the country/region is set to CN and the language is set to ug, the isSuggested API returns false, and the recommended language contains only zh-Hans.

Change Impact

This change does not require application adaptation.

Before:

LanguageCountry/RegionReturn Value
boCNfalse
enAE,AF,AG,AI,AL,AS,AT,AU,BB,BE,BI,BM,BS,BW,BZ,CA,CC,CH,CK,CM,
CX,CY,DE,DG,DK,DM,ER,FI,FJ,FK,FM,GB,GD,GG,GH,GI,GM,GU,GY,HK,
IE,IL,IM,IN,IO,IR,JE,JM,KE,KI,KN,KY,LC,LR,LS,MG,MH,MO,MP,MS,
MT,MU,MV,MW,MY,NA,NF,NG,NL,NR,NU,NZ,PG,PH,PK,PN,PR,PW,RW,SB,
SC,SD,SE,SG,SH,SI,SL,SS,SX,SZ,TC,TJ,TK,TM,TO,TT,TV,TZ,UG,UM,
VC,VG,VI,VU,WS,ZA,ZM,ZW
false
ugCNfalse
zh-HansHK,SG,MOtrue

After:

LanguageCountry/RegionReturn Value
boCNtrue
enAE,AF,AG,AI,AL,AS,AT,AU,BB,BE,BI,BM,BS,BW,BZ,CA,CC,CH,CK,CM,
CX,CY,DE,DG,DK,DM,ER,FI,FJ,FK,FM,GB,GD,GG,GH,GI,GM,GU,GY,HK,
IE,IL,IM,IN,IO,IR,JE,JM,KE,KI,KN,KY,LC,LR,LS,MG,MH,MO,MP,MS,
MT,MU,MV,MW,MY,NA,NF,NG,NL,NR,NU,NZ,PG,PH,PK,PN,PR,PW,RW,SB,
SC,SD,SE,SG,SH,SI,SL,SS,SX,SZ,TC,TJ,TK,TM,TO,TT,TV,TZ,UG,UM,
VC,VG,VI,VU,WS,ZA,ZM,ZW
true
ugCNtrue
zh-HansHK,SG,MOfalse

Start API Level

9

Change Since

OpenHarmony SDK 5.1.0.48

Key API/Component Changes

i18n.System.isSuggested

Adaptation Guide

No adaptation is required.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙1.0.0 (2022/03/09)

harmony 鸿蒙1.0.0 (2022/03/09)

harmony 鸿蒙OpenHarmony Docker镜像

harmony 鸿蒙OpenHarmony Docker Image

harmony 鸿蒙Legal Notices

harmony 鸿蒙OpenHarmony Project

harmony 鸿蒙IDL Specifications and User Guide (for System Applications Only)

harmony 鸿蒙Application Development

harmony 鸿蒙Accessibility Kit

harmony 鸿蒙Introduction to Accessibility Kit

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/CgXv5h