openharmony 鸿蒙 changelogs-i18n

2026-08-25 浏览 (1)

Globalization Subsystem Changelog

cl.global.1 Enhancements to Localization Display and Line Breaking in Globalization and Runtime APIs

Access Level

Public

Reason for Change

The ICU version has been upgraded from 72.1 to 74.2. Based on the ICU 74.2 data, this update improves localization conventions, making the behavior of certain globalization and runtime APIs better aligned with regional language usage. It also enhances the system's text line-breaking capabilities.

Change Impact

This change requires application adaptation.

For detailed API behavior changes, see Affected APIs/Components. Updates to system line-breaking behavior are as follows:

BeforeAfter
CJK ideographs did not include characters in the range U+2EBF0 to U+2EE5F.622 ideographs and 5 special ideographic characters in this range are now included in CJK ideographs.
Line breaking between orthographic syllables was not supported for Burmese, Thai, Lao, and Khmer. For example, in a Text component, the Burmese text "သော့line-breaking pointခလောက်" would break at "line-breaking point".Line breaking between orthographic syllables is now supported for Burmese, Thai, Lao, and Khmer. For example, in a Text component, the Burmese text "line-breaking pointသော့ခလောက်" breaks at "line-breaking point".

Starting API Level

API 6

Effective Version

OpenHarmony SDK 6.1.0.21

Affected APIs/Components

APIExample ScenarioReturn Value (Before)Return Value (After)
intl.DateTimeFormat.formatFormatting April 23, 2024 in Traditional Chinese2024年4月23日2024 年 4 月 23 日
intl.DateTimeFormat.formatRangeFormatting December 20–21, 2020 in British English20/12/2020 – 21/12/202020/12/2020 – 21/12/2020 (separator updated)
intl.Locale.maximizeLocale ID hy-arevmdahywhyw-Armn-AM
intl.Locale.minimizeLocale ID und-150ruen-150
intl.RelativeTimeFormat.formatDisplaying "within 1 quarter" in Englishin 1 qtr.in 1q
i18n.System.getDisplayCountryLocale AC with language esIsla de la AscensiónIsla Ascensión
i18n.System.getDisplayLanguageDisplaying language ID yue in Chinese粤文粤语
i18n.Transliterator.transformTransliterate 𚽇 to Latin𚽇
i18n.TimeZone.getDisplayNameDisplay name of Asia/Kamchatka in CzechPetropavlovsko-kamčatský standardní časpetropavlovsko-kamčatský standardní čas
i18n.Calendar.getDisplayNameCalendar type islamic_tbla in Chinese伊斯兰天文历islamic-tbla
i18n.StyledDateTimeFormat.formatFormatting Nov 1, 2025 16:14:06Saturday, 1 November 2025, 16:14:06 Central Standard TimeSaturday 1 November 2025 at 16:14:06 Central Standard Time
i18n.getSimpleDateTimeFormatBySkeletonFormatting with skeleton yMdhms in Chinese13/12/2024 上午6:30:2513/12/2024 上午 6:30:25
Date.toLocaleDateStringFormatting date in Arabic'الخميس، ٢٠ ديسمبر ٢٠١٢''الخميس، ٢٠ ديسمبر، ٢٠١٢'
Date.toLocaleStringFormatting date in English10/20/2022, 6:00:00 PM10/20/2022, 6:00:00 PM (space before PM updated)
Date.toLocaleTimeStringFormatting date in English6:00:00 PM6:00:00 PM (space before PM updated)
Intl.DateTimeFormat.formatFormatting April 23, 2024 in Traditional Chinese2024年4月23日2024 年 4 月 23 日
Intl.DateTimeFormat.formatRangeFormatting December 20–21, 2020 in British English20/12/2020 – 21/12/202020/12/2020 – 21/12/2020 (separator updated)
Intl.DateTimeFormat.formatRangeToPartsFormatting December 20–21, 2020 in English{ type: "literal", value: " – " }{"type":"literal","value":" – "} (whitespace character in value updated)
Intl.ListFormat.formatFormatting list in ChineseMotorcycle、Bus和CarMotorcycle、Bus、Car
Intl.RelativeTimeFormat.formatDisplaying "within 1 quarter" in Englishin 1 qtr.in 1q
Intl.Locale.maximizeLocale ID hy-arevmdahywhyw-Armn-AM
Intl.Locale.minimizeLocale ID und-150ruen-150
ubrk_nextTokenizing "service@baidu.com"The @ symbol is attached to adjacent letters, treated as a single token.The @ symbol is treated as a word boundary, resulting in "service", "@", and "baidu.com".

Adaptation Guide

This change updates the default behavior of APIs. You need to assess whether it affects your UI or display logic and update the code as needed.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 i18n-ui-design

openharmony 鸿蒙 i18n-sorting-local

openharmony 鸿蒙 i18n-numbers-weights-measures

openharmony 鸿蒙 i18n-l10n

openharmony 鸿蒙 i18n-preferred-language

openharmony 鸿蒙 Readme-EN

openharmony 鸿蒙 i18n-language-region-display

openharmony 鸿蒙 pseudo-i18n-testing-translation

openharmony 鸿蒙 i18n-calendar

openharmony 鸿蒙 i18n-dst-transition

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