!8707 国际化新增接口

Merge pull request !8707 from 罗博明/master
This commit is contained in:
openharmony_ci 2024-02-05 06:58:39 +00:00 committed by Gitee
commit e91698b6e5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

15
api/@ohos.i18n.d.ts vendored
View File

@ -554,6 +554,21 @@ declare namespace i18n {
* @since 11
*/
static getTimePeriodName(hour:number, locale?: string): string;
/**
* Get the best matched locale in the specified list.
*
* @param { string } locale - the origin locale.
* @param { string[] } localeList - a list of locales to be matched.
* @returns { string } the string of the best matched locale name.
* The return value may be empty string due to none is matched.
* @throws {BusinessError} 401 - check param failed.
* @throws {BusinessError} 890001 - param value not valid.
* @static
* @syscap SystemCapability.Global.I18n
* @since 12
*/
static getBestMatchLocale(locale: string, localeList: string[]): string;
}
/**