diff --git a/api/@ohos.intl.d.ts b/api/@ohos.intl.d.ts index 4db1007e95315403b13a96bf614d3d6f5358f580..1096a9c427fa277906438227837f13cf16c563bf 100755 --- a/api/@ohos.intl.d.ts +++ b/api/@ohos.intl.d.ts @@ -21,6 +21,56 @@ * @devices phone, tablet, tv, wearable, car */ declare namespace intl { +/** + * Provides the options of Locale. + * + * @since 8 + * @sysCap SystemCapability.I18N + */ +export interface LocaleOptions { + /** + * Indicates the calendar. + * + * @since 8 + */ + calendar: string; + + /** + * Indicates the collation. + * + * @since 8 + */ + collation: string; + + /** + * Indicates the hourCycle. + * + * @since 8 + */ + hourCycle: string; + + /** + * Indicates the numberingSystem. + * + * @since 8 + */ + numberingSystem: string; + + /** + * Indicates the numeric. + * + * @since 8 + */ + numeric: boolean; + + /** + * Indicates the caseFirst. + * + * @since 8 + */ + caseFirst: string; +} + /** * Provides APIs for obtaining locale information. * @@ -36,7 +86,7 @@ export class Locale { * the language and optionally the script and region. * @since 6 */ - constructor(locale?: string); + constructor(locale?: string, options?: LocaleOptions); /** * Indicates the language of the locale.