diff --git a/api/@ohos.i18n.d.ts b/api/@ohos.i18n.d.ts index 5b905f211a30c5d42999ecd0a75bfe38184ecfab..ab1b00a6f4707bc8c7a3dab8c3e2f6bf099e84ae 100644 --- a/api/@ohos.i18n.d.ts +++ b/api/@ohos.i18n.d.ts @@ -22,6 +22,9 @@ import { BusinessError } from './@ohos.base'; import intl from './@ohos.intl'; /*** endif */ +/*** if arkts 1.2 */ +import { StyledString, TextStyle } from './arkui/component/styledString'; +/*** endif */ /** * Provides international settings related APIs. @@ -407,10 +410,9 @@ declare namespace i18n { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} + * @since 11 * @deprecated since 20 * @useinstead ohos.System.getSystemLocaleInstance - * @arkts 1.1&1.2 */ static getSystemLocale(): string; @@ -423,6 +425,7 @@ declare namespace i18n { * @crossplatform * @atomicservice * @since 20 + * @arkts 1.1&1.2 */ static getSystemLocaleInstance(): Intl.Locale; @@ -438,9 +441,8 @@ declare namespace i18n { * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed. * @syscap SystemCapability.Global.I18n * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'9','1.2':'20'} + * @since 9 * @deprecated since 20 - * @arkts 1.1&1.2 */ static setSystemLocale(locale: string): void; @@ -967,6 +969,18 @@ declare namespace i18n { * @since 20 */ static getUsingNumericalDatePattern(): string; + + /** + * Gets temperatures used by system locale. + * + * @returns { Map } a map containing the type and name of temperatures + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @static + * @syscap SystemCapability.Global.I18n + * @systemapi + * @since 20 + */ + static getSystemTemperatures(): Map; } /** @@ -1306,21 +1320,21 @@ declare namespace i18n { * @static * @syscap SystemCapability.Global.I18n * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} + * @since 18 * @deprecated since 20 - * @arkts 1.1&1.2 */ static getUnicodeWrappedFilePath(path: string, delimiter?: string, locale?: intl.Locale): string; /** - * Get the localized file path. - * Return the mirrored file path if the locale is RTL. Otherwise return the input file path. - * The default value of locale is current system locale. + * Localizes a file path for the specified locale. For example, /data/out/tmp is changed to tmp/out/data/ after + * localization. * - * @param { string } path - the file path that needs to be localized. - * @param { string } [delimiter] - the file path's delimiter. - * @param { Intl.Locale } [locale] - the locale object used to localized file path. - * @returns { string } the localized file path. + * @param { string } path - Path to mirror, for example, "/data/out/tmp". + * @param { string } [delimiter] - Path delimiter. The default value is "/"". + * @param { Intl.Locale } [locale] - Locale object. The default value is the current system locale. + * @returns { string } File path after localization. If the specified locale object corresponds to an RTL language, + * the processed file path contains a direction control character to ensure that the file path + * is displayed in mirror mode. * @throws { BusinessError } 8900001 - Invalid parameter. Possible causes: Parameter verification failed. * @static * @syscap SystemCapability.Global.I18n @@ -1731,21 +1745,21 @@ declare namespace i18n { * @since 10 */ /** - * Set the time + * Sets the year, month, day, hour, minute, and second for this Calendar object. * - * @param { int } year - The year field of the calendar, ranges from 0 to 9999. - * @param { int } month - The month field of the calendar, ranges from 0 to 11. - * @param { int } date - The day field of the calendar, ranges from 1 to 31. - * @param { int } hour - The hour field of the calendar, ranges from 0 to 23. - * @param { int } minute - The minute field of the calendar, ranges from 0 to 59. - * @param { int } second - the second field of the calendar, ranges from 0 to 59. + * @param { int } year - Year to set. + * @param { int } month - Month to set. Note: The month starts from 0. For example, 0 indicates January. + * @param { int } date - Day to set. + * @param { int } hour - Hour to set. The default value is the current system time. + * @param { int } minute - Minute to set. The default value is the current system time. + * @param { int } second - Second to set. The default value is the current system time. * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - set(year: int, month: int, date: int, hour?: int, minute?: int, second?: int): void; + set(year: int, month: int, date:int, hour?: int, minute?: int, second?: int): void; /** * Set the timezone of this calendar. @@ -2437,112 +2451,121 @@ declare namespace i18n { */ export class Character { /** - * Determines whether the specified code point is a digit character + * Checks whether the input character is a digit. * - * @param { string } char - the character to be tested - * @returns { boolean } true if the character is a digit character + * @param { string } ch - Input character. If the input is a string, only the type of the first character is + * checked. + * @returns { boolean } true if the input character is a digit, and false otherwise. * @syscap SystemCapability.Global.I18n * @since 8 * @deprecated since 9 * @useinstead Unicode.isDigit */ - isDigit(char: string): boolean; + isDigit(ch: string): boolean; /** - * Determines if the specified character is a space character or not. + * Checks whether the input character is a space. * - * @param { string } char - the character to be tested - * @returns { boolean } true if the character is a space character + * @param { string } ch - Input character. If the input is a string, only the type of the first character is + * checked. + * @returns { boolean } true if the input character is a space, and false otherwise. * @syscap SystemCapability.Global.I18n * @since 8 * @deprecated since 9 * @useinstead Unicode.isSpaceChar */ - isSpaceChar(char: string): boolean; + isSpaceChar(ch: string): boolean; /** - * Determines if the specified character is a whitespace character + * Checks whether the input character is a whitespace. * - * @param { string } char - the character to be tested - * @returns { boolean } true if the character is a whitespace character + * @param { string } ch - Input character. If the input is a string, only the type of the first character is + * checked. + * @returns { boolean } true if the input character is a white space, and false otherwise. * @syscap SystemCapability.Global.I18n - * @since 8 + * @since arkts 8 * @deprecated since 9 * @useinstead Unicode.isWhitespace */ - isWhitespace(char: string): boolean; + isWhitespace(ch: string): boolean; /** - * Determines if the specified character is a RTL character or not. + * Checks whether the input character is of the right to left (RTL) language. * - * @param { string } char - the character to be tested - * @returns { boolean } true if the character is a RTL character + * @param { string } ch - Input character. If the input is a string, only the type of the first character is + * checked. + * @returns { boolean } true if the input character is of the RTL language, and false otherwise. * @syscap SystemCapability.Global.I18n - * @since 8 + * @since arkts 8 * @deprecated since 9 * @useinstead Unicode.isRTL */ - isRTL(char: string): boolean; + isRTL(ch: string): boolean; /** - * Determines if the specified character is a Ideographic character or not. + * Checks whether the input character is an ideographic character. * - * @param { string } char - the character to be tested - * @returns { boolean } true if the character is a Ideographic character + * @param { string } ch - Input character. If the input is a string, only the type of the first character is + * checked. + * @returns { boolean } true if the input character an ideographic character, and false otherwise. * @syscap SystemCapability.Global.I18n * @since 8 * @deprecated since 9 * @useinstead Unicode.isIdeograph */ - isIdeograph(char: string): boolean; + isIdeograph(ch: string): boolean; /** - * Determines if the specified character is a Letter or not. + * Checks whether the input character is a letter. * - * @param { string } char - the character to be tested - * @returns { boolean } true if the character is a Letter + * @param { string } ch - Input character. If the input is a string, only the type of the first character is + * checked. + * @returns { boolean } true if the input character a letter, and false otherwise. * @syscap SystemCapability.Global.I18n * @since 8 * @deprecated since 9 * @useinstead Unicode.isLetter */ - isLetter(char: string): boolean; + isLetter(ch: string): boolean; /** - * Determines if the specified character is a LowerCase character or not. + * Checks whether the input character is a lowercase letter. * - * @param { string } char - the character to be tested - * @returns { boolean } true if the character is a LowerCase character + * @param { string } ch - Input character. If the input is a string, only the type of the first character is + * checked. + * @returns { boolean } true if the input character a lowercase letter, and false otherwise. * @syscap SystemCapability.Global.I18n * @since 8 * @deprecated since 9 * @useinstead Unicode.isLowerCase */ - isLowerCase(char: string): boolean; + isLowerCase(ch: string): boolean; /** - * Determines if the specified character is a UpperCase character or not. + * Checks whether the input character is an uppercase letter. * - * @param { string } char - the character to be tested - * @returns { boolean } true if the character is a UpperCase character + * @param { string } ch - Input character. If the input is a string, only the type of the first character is + * checked. + * @returns { boolean } true if the input character an uppercase letter, and false otherwise. * @syscap SystemCapability.Global.I18n * @since 8 * @deprecated since 9 * @useinstead Unicode.isUpperCase */ - isUpperCase(char: string): boolean; + isUpperCase(ch: string): boolean; /** - * Get the general category value of the specified character. + * Obtains the type of the input character. * - * @param { string } char - the character to be tested - * @returns { string } the general category of the specified character. + * @param { string } ch - Input character. If the input is a string, only the type of the first character is + * checked. + * @returns { string } Type of the input character. * @syscap SystemCapability.Global.I18n * @since 8 * @deprecated since 9 * @useinstead Unicode.getType */ - getType(char: string): string; + getType(ch: string): string; } /** @@ -3688,7 +3711,7 @@ declare namespace i18n { /** * Offset of the time zone ID. - * + * * @type { int } * @syscap SystemCapability.Global.I18n * @systemapi Hide this for inner system use. @@ -3710,7 +3733,7 @@ declare namespace i18n { /** * Fixed offset of the time zone ID. - * + * * @type { ?int } * @syscap SystemCapability.Global.I18n * @systemapi Hide this for inner system use. @@ -4221,19 +4244,21 @@ declare namespace i18n { * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed. * @syscap SystemCapability.Global.I18n * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} + * @since 18 * @deprecated since 20 - * @arkts 1.1&1.2 */ export function getSimpleDateTimeFormatByPattern(pattern: string, locale?: intl.Locale): SimpleDateTimeFormat; /** - * Create a SimpleDateTimeFormat object by pattern and locale. - * The default value of locale is the current system locale. + * Obtains a SimpleDateTimeFormat object based on the specified pattern string. For details about the display + * differences between the objects obtained by this API and getSimpleDateTimeFormatBySkeleton, + * see SimpleDateTimeFormat. * - * @param { string } pattern - the pattern used to create SimpleDateTimeFormat object. - * @param { Intl.Locale } [locale] - the Intl.Locale object used to create Intl.SimpleDateTimeFormat object. - * @returns { SimpleDateTimeFormat } a SimpleDateTimeFormat object created from pattern. + * @param { string } pattern - Valid pattern. For details about the supported characters and their meanings, see + * [Date Field Symbol Table](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table). + * This parameter also supports custom text enclosed in single quotation marks (''). + * @param { Intl.Locale } [locale] - Locale object. The default value is the current system locale. + * @returns { SimpleDateTimeFormat } SimpleDateTimeFormat object. * @throws { BusinessError } 8900001 - Invalid parameter. Possible causes: Parameter verification failed. * @syscap SystemCapability.Global.I18n * @atomicservice @@ -4253,20 +4278,20 @@ declare namespace i18n { * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed. * @syscap SystemCapability.Global.I18n * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} + * @since 18 * @deprecated since 20 - * @arkts 1.1&1.2 */ export function getSimpleDateTimeFormatBySkeleton(skeleton: string, locale?: intl.Locale): SimpleDateTimeFormat; /** - * Create a SimpleDateTimeFormat object by skeleton and locale. This method create a pattern by locale and skeleton, the pattern - * includes locale specific separators, and the fields'order will be adjust for that locale. - * The default value of locale is the current system locale. + * Obtains a SimpleDateTimeFormat object based on the specified skeleton. For details about the display differences + * between the objects obtained by this API and getSimpleDateTimeFormatByPattern, see SimpleDateTimeFormat. * - * @param { string } skeleton - the skeleton used to create SimpleDateTimeFormat object. - * @param { Intl.Locale } [locale] - the Intl.Locale object used to create SimpleDateTimeFormat object. - * @returns { SimpleDateTimeFormat } a SimpleDateTimeFormat object created from skeleton. + * @param { string } skeleton - Valid skeleton. For details about the supported characters and their meanings, see + * [Date Field Symbol Table](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table). + * This parameter does not support custom text. + * @param { Intl.Locale } [locale] - Locale object. The default value is the current system locale. + * @returns { SimpleDateTimeFormat } SimpleDateTimeFormat object. * @throws { BusinessError } 8900001 - Invalid parameter. Possible causes: Parameter verification failed. * @syscap SystemCapability.Global.I18n * @atomicservice @@ -4307,19 +4332,18 @@ declare namespace i18n { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} + * @since 18 * @deprecated since 20 - * @arkts 1.1&1.2 */ export function getSimpleNumberFormatBySkeleton(skeleton: string, locale?: intl.Locale): SimpleNumberFormat; /** - * Create a SimpleNumberFormat object by pattern and locale. - * The default value of locale is the current system locale. + * Obtains a SimpleNumberFormat object based on the specified skeleton. * - * @param { string } skeleton - the skeleton used to create SimpleNumberFormat object. - * @param { Intl.Locale } [locale] - the Intl.Locale object used to create SimpleNumberFormat object. - * @returns { SimpleNumberFormat } a SimpleNumberFormat object created from pattern. + * @param { string } skeleton - Valid skeleton. For details about the supported characters and their meanings, see + * [Number Skeletons](https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#number-skeletons). + * @param { Intl.Locale } [locale] - Locale object. The default value is the current system locale. + * @returns { SimpleNumberFormat } SimpleNumberFormat object. * @throws { BusinessError } 8900001 - Invalid parameter. Possible causes: Parameter verification failed. * @syscap SystemCapability.Global.I18n * @crossplatform @@ -4355,7 +4379,8 @@ declare namespace i18n { * * @syscap SystemCapability.Global.I18n * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export class StyledNumberFormat { /** @@ -4366,8 +4391,9 @@ declare namespace i18n { * The default value is the default text style. * @syscap SystemCapability.Global.I18n * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} * @deprecated since 20 + * @arkts 1.1&1.2 */ constructor(numberFormat: intl.NumberFormat | SimpleNumberFormat, options?: StyledNumberFormatOptions); @@ -4390,7 +4416,8 @@ declare namespace i18n { * @returns { StyledString } Rich text object after formatting. * @syscap SystemCapability.Global.I18n * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ format(value: double): StyledString; } @@ -4401,7 +4428,8 @@ declare namespace i18n { * @interface StyledNumberFormatOptions * @syscap SystemCapability.Global.I18n * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export interface StyledNumberFormatOptions { /** @@ -4410,7 +4438,8 @@ declare namespace i18n { * @type { ?TextStyle } * @syscap SystemCapability.Global.I18n * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ integer?: TextStyle; @@ -4420,7 +4449,8 @@ declare namespace i18n { * @type { ?TextStyle } * @syscap SystemCapability.Global.I18n * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ decimal?: TextStyle; @@ -4430,7 +4460,8 @@ declare namespace i18n { * @type { ?TextStyle } * @syscap SystemCapability.Global.I18n * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ fraction?: TextStyle; @@ -4440,7 +4471,8 @@ declare namespace i18n { * @type { ?TextStyle } * @syscap SystemCapability.Global.I18n * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ unit?: TextStyle; } diff --git a/api/@ohos.intl.d.ts b/api/@ohos.intl.d.ts index e51b5ab8f028472624c9dc0edac6a5a9f65cfe99..a4a7a158a847ce2755ab3f195874ac7b4672eed9 100644 --- a/api/@ohos.intl.d.ts +++ b/api/@ohos.intl.d.ts @@ -86,10 +86,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.LocaleOptions - * @arkts 1.1&1.2 */ export interface LocaleOptions { /** @@ -133,10 +132,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.LocaleOptions.calendar - * @arkts 1.1&1.2 */ calendar?: string; @@ -180,10 +178,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.LocaleOptions.collation - * @arkts 1.1&1.2 */ collation?: string; @@ -226,10 +223,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.LocaleOptions.hourCycle - * @arkts 1.1&1.2 */ hourCycle?: string; @@ -277,10 +273,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.LocaleOptions.numberingSystem - * @arkts 1.1&1.2 */ numberingSystem?: string; @@ -324,10 +319,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.LocaleOptions.numeric - * @arkts 1.1&1.2 */ numeric?: boolean; @@ -370,10 +364,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.LocaleOptions.caseFirst - * @arkts 1.1&1.2 */ caseFirst?: string; } @@ -406,8 +399,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 + * @deprecated since 20 + * @useinstead Intl.Locale */ export class Locale { /** @@ -438,10 +432,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead i18n.System.getSystemLocaleObject - * @arkts 1.1&1.2 */ constructor(); @@ -484,10 +477,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.Locale.constructor - * @arkts 1.1&1.2 */ constructor(locale: string, options?: LocaleOptions); @@ -854,246 +846,6 @@ declare namespace intl { */ numeric: boolean; - /** - * Get the language of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get language(): string; - - /** - * Set the language of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set language(value: string); - - /** - * Get the script of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get script(): string; - - /** - * Set the script of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set script(value: string); - - /** - * Get the region of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get region(): string; - - /** - * Set the region of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set region(value: string); - - /** - * Get the baseName of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get baseName(): string; - - /** - * Set the baseName of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set baseName(value: string); - - /** - * Get the caseFirst of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get caseFirst(): string; - - /** - * Set the caseFirst of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set caseFirst(value: string); - - /** - * Get the calendar of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get calendar(): string; - - /** - * Set the calendar of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set calendar(value: string); - - /** - * Get the collation of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get collation(): string; - - /** - * Set the collation of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set collation(value: string); - - /** - * Get the hourCycle of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get hourCycle(): string; - - /** - * Set the hourCycle of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set hourCycle(value: string); - - /** - * Get the numberingSystem of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get numberingSystem(): string; - - /** - * Set the numberingSystem of the locale. - * - * @type { string } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set numberingSystem(value: string); - - /** - * Get the numeric of the locale. - * - * @type { boolean } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - get numeric(): boolean; - - /** - * Set the numeric of the locale. - * - * @type { boolean } - * @syscap SystemCapability.Global.I18n - * @crossplatform - * @form - * @since 20 - * @arkts 1.2 - */ - set numeric(value: boolean); - /** * Convert the locale information to string. * @@ -1126,10 +878,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.Locale.toString - * @arkts 1.1&1.2 */ toString(): string; @@ -1165,10 +916,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.Locale.maximize - * @arkts 1.1&1.2 */ maximize(): Locale; @@ -1204,10 +954,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.Locale.minimize - * @arkts 1.1&1.2 */ minimize(): Locale; } @@ -1245,10 +994,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions */ export interface DateTimeOptions { /** @@ -1283,17 +1031,15 @@ declare namespace intl { * @since 11 */ /** - * Valid locale ID, for example, "zh-Hans-CN". The default value is the current system locale. + * Valid locale ID, for example, "zh-Hans-CN". The default value is the current system locale. * * @type { ?string } * @syscap SystemCapability.Global.I18n * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.locale - * @arkts 1.1&1.2 */ locale?: string; @@ -1336,10 +1082,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.dateStyle - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.dateStyle */ dateStyle?: string; @@ -1382,10 +1127,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.timeStyle - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.timeStyle */ timeStyle?: string; @@ -1421,17 +1165,16 @@ declare namespace intl { * @since 11 */ /** - * Hour cycle. The value can be: "h11", "h12", "h23", or "h24". + * Hour cycle. The value can be: "h11", "h12", "h23", or "h24". * * @type { ?string } * @syscap SystemCapability.Global.I18n * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.hourCycle - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.hourCycle */ hourCycle?: string; @@ -1467,17 +1210,16 @@ declare namespace intl { * @since 11 */ /** - * Time zone in use. The value is a valid IANA time zone ID. + * Time zone in use. The value is a valid IANA time zone ID. * * @type { ?string } * @syscap SystemCapability.Global.I18n * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.timeZone - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.timeZone */ timeZone?: string; @@ -1525,10 +1267,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.numberingSystem - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.numberingSystem */ numberingSystem?: string; @@ -1573,10 +1314,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.hour12 - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.hour12 */ hour12?: boolean; @@ -1619,10 +1359,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.weekday - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.weekday */ weekday?: string; @@ -1665,10 +1404,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.era - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.era */ era?: string; @@ -1711,10 +1449,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.year - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.year */ year?: string; @@ -1757,10 +1494,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.month - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.month */ month?: string; @@ -1803,10 +1539,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.day - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.day */ day?: string; @@ -1849,10 +1584,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.hour - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.hour */ hour?: string; @@ -1895,10 +1629,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.minute - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.minute */ minute?: string; @@ -1941,10 +1674,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.second - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.second */ second?: string; @@ -1987,10 +1719,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.timeZoneName - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.timeZoneName */ timeZoneName?: string; @@ -2033,10 +1764,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.dayPeriod - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.dayPeriod */ dayPeriod?: string; @@ -2081,10 +1811,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.localeMatcher - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.localeMatcher */ localeMatcher?: string; @@ -2129,10 +1858,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.DateTimeOptions.formatMatcher - * @arkts 1.1&1.2 + * @useinstead Intl.DateTimeFormatOptions.formatMatcher */ formatMatcher?: string; } @@ -2165,10 +1893,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.DateTimeFormat - * @arkts 1.1&1.2 */ export class DateTimeFormat { /** @@ -2199,10 +1926,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.DateTimeFormat.constructor - * @arkts 1.1&1.2 */ constructor(); @@ -2247,10 +1973,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.DateTimeFormat.constructor - * @arkts 1.1&1.2 */ constructor(locale: string | Array, options?: DateTimeOptions); @@ -2290,10 +2015,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.DateTimeFormat.format - * @arkts 1.1&1.2 */ format(date: Date): string; @@ -2338,10 +2062,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.DateTimeFormat.formatRange - * @arkts 1.1&1.2 */ formatRange(startDate: Date, endDate: Date): string; @@ -2377,10 +2100,9 @@ declare namespace intl { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.DateTimeFormat.resolvedOptions - * @arkts 1.1&1.2 */ resolvedOptions(): DateTimeOptions; } @@ -2409,8 +2131,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions * @arkts 1.1&1.2 */ export interface NumberOptions { @@ -2444,8 +2164,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.locale * @arkts 1.1&1.2 */ locale?: string; @@ -2482,8 +2200,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.currency * @arkts 1.1&1.2 */ currency?: string; @@ -2518,8 +2234,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.currencySign * @arkts 1.1&1.2 */ currencySign?: string; @@ -2555,8 +2269,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.currencyDisplay * @arkts 1.1&1.2 */ currencyDisplay?: string; @@ -2594,8 +2306,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.unit * @arkts 1.1&1.2 */ unit?: string; @@ -2630,8 +2340,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.unitDisplay * @arkts 1.1&1.2 */ unitDisplay?: string; @@ -2671,7 +2379,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 * @arkts 1.1&1.2 */ unitUsage?: string; @@ -2711,8 +2418,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.signDisplay * @arkts 1.1&1.2 */ signDisplay?: string; @@ -2747,8 +2452,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.compactDisplay * @arkts 1.1&1.2 */ compactDisplay?: string; @@ -2784,8 +2487,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.notation * @arkts 1.1&1.2 */ notation?: string; @@ -2820,8 +2521,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.localeMatcher * @arkts 1.1&1.2 */ localeMatcher?: string; @@ -2857,8 +2556,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.style * @arkts 1.1&1.2 */ style?: string; @@ -2898,8 +2595,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.numberingSystem * @arkts 1.1&1.2 */ numberingSystem?: string; @@ -2935,8 +2630,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.useGrouping * @arkts 1.1&1.2 */ useGrouping?: boolean; @@ -2972,8 +2665,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.minimumIntegerDigits * @arkts 1.1&1.2 */ minimumIntegerDigits?: int; @@ -3009,8 +2700,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.minimumFractionDigits * @arkts 1.1&1.2 */ minimumFractionDigits?: int; @@ -3046,8 +2735,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.maximumFractionDigits * @arkts 1.1&1.2 */ maximumFractionDigits?: int; @@ -3082,8 +2769,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.minimumSignificantDigits * @arkts 1.1&1.2 */ minimumSignificantDigits?: int; @@ -3118,8 +2803,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.maximumSignificantDigits * @arkts 1.1&1.2 */ maximumSignificantDigits?: int; @@ -3134,8 +2817,6 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.roundingPriority * @arkts 1.1&1.2 */ roundingPriority?: string; @@ -3148,8 +2829,6 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.roundingIncrement * @arkts 1.1&1.2 */ roundingIncrement?: int; @@ -3178,8 +2857,6 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberOptions.roundingMode * @arkts 1.1&1.2 */ roundingMode?: string; @@ -3205,8 +2882,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberFormat * @arkts 1.1&1.2 */ export class NumberFormat { @@ -3230,8 +2905,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberFormat.constructor * @arkts 1.1&1.2 */ constructor(); @@ -3265,8 +2938,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberFormat.constructor * @arkts 1.1&1.2 */ constructor(locale: string | Array, options?: NumberOptions); @@ -3297,8 +2968,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberFormat.format * @arkts 1.1&1.2 */ format(num: double): string; @@ -3312,8 +2981,6 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberFormat.formatRange * @arkts 1.1&1.2 */ formatRange(startRange: double, endRange: double): string; @@ -3341,8 +3008,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.NumberFormat.resolvedOptions * @arkts 1.1&1.2 */ resolvedOptions(): NumberOptions; @@ -3371,8 +3036,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.CollatorOptions * @arkts 1.1&1.2 */ export interface CollatorOptions { @@ -3409,8 +3072,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.CollatorOptions.localeMatcher * @arkts 1.1&1.2 */ localeMatcher?: string; @@ -3449,8 +3110,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.CollatorOptions.usage * @arkts 1.1&1.2 */ usage?: string; @@ -3507,8 +3166,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.CollatorOptions.sensitivity * @arkts 1.1&1.2 */ sensitivity?: string; @@ -3544,8 +3201,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.CollatorOptions.ignorePunctuation * @arkts 1.1&1.2 */ ignorePunctuation?: boolean; @@ -3581,8 +3236,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.CollatorOptions.collation * @arkts 1.1&1.2 */ collation?: string; @@ -3618,8 +3271,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.CollatorOptions.numeric * @arkts 1.1&1.2 */ numeric?: boolean; @@ -3658,8 +3309,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.CollatorOptions.caseFirst * @arkts 1.1&1.2 */ caseFirst?: string; @@ -3685,8 +3334,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.Collator * @arkts 1.1&1.2 */ export class Collator { @@ -3710,8 +3357,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.Collator.constructor * @arkts 1.1&1.2 */ constructor(); @@ -3744,8 +3389,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.Collator.constructor * @arkts 1.1&1.2 */ constructor(locale: string | Array, options?: CollatorOptions); @@ -3787,8 +3430,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.Collator.compare * @arkts 1.1&1.2 */ compare(first: string, second: string): int; @@ -3818,8 +3459,6 @@ declare namespace intl { * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} - * @deprecated since 20 - * @useinstead Intl.Collator.resolvedOptions * @arkts 1.1&1.2 */ resolvedOptions(): CollatorOptions; @@ -3847,10 +3486,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRulesOptions - * @arkts 1.1&1.2 */ export interface PluralRulesOptions { /** @@ -3885,10 +3523,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRulesOptions.localeMatcher - * @arkts 1.1&1.2 */ localeMatcher?: string; @@ -3916,16 +3553,15 @@ declare namespace intl { */ /** * Collation type. The value can be "cardinal" or "ordinal". The default value is "cardinal". The value "cardinal" - * indicates a cardinal number and the value "ordinal" indicates an ordinal number. + * indicates a cardinal number and the value "ordinal" indicates an ordinal number. * * @type { ?string } * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRulesOptions.type - * @arkts 1.1&1.2 */ type?: string; @@ -3962,10 +3598,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRulesOptions.minimumIntegerDigits - * @arkts 1.1&1.2 */ minimumIntegerDigits?: int; @@ -4002,10 +3637,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRulesOptions.minimumFractionDigits - * @arkts 1.1&1.2 */ minimumFractionDigits?: int; @@ -4045,10 +3679,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRulesOptions.maximumFractionDigits - * @arkts 1.1&1.2 */ maximumFractionDigits?: int; @@ -4084,10 +3717,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRulesOptions.minimumSignificantDigits - * @arkts 1.1&1.2 */ minimumSignificantDigits?: int; @@ -4123,10 +3755,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRulesOptions.maximumSignificantDigits - * @arkts 1.1&1.2 */ maximumSignificantDigits?: int; } @@ -4150,10 +3781,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRules - * @arkts 1.1&1.2 */ export class PluralRules { /** @@ -4175,10 +3805,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRules.constructor - * @arkts 1.1&1.2 */ constructor(); @@ -4210,10 +3839,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRules.constructor - * @arkts 1.1&1.2 */ constructor(locale: string | Array, options?: PluralRulesOptions); @@ -4246,10 +3874,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.PluralRules.select - * @arkts 1.1&1.2 */ select(n: double): string; } @@ -4276,10 +3903,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.RelativeTimeFormatInputOptions - * @arkts 1.1&1.2 + * @useinstead Intl.RelativeTimeFormatOptions */ export interface RelativeTimeFormatInputOptions { /** @@ -4314,10 +3940,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.RelativeTimeFormatInputOptions.localeMatcher - * @arkts 1.1&1.2 + * @useinstead Intl.RelativeTimeFormatOptions.localeMatcher */ localeMatcher?: string; @@ -4353,10 +3978,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.RelativeTimeFormatInputOptions.numeric - * @arkts 1.1&1.2 + * @useinstead Intl.RelativeTimeFormatOptions.numeric */ numeric?: string; @@ -4393,10 +4017,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.RelativeTimeFormatInputOptions.style - * @arkts 1.1&1.2 + * @useinstead Intl.RelativeTimeFormatOptions.style */ style?: string; } @@ -4423,10 +4046,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.RelativeTimeFormatResolvedOptions - * @arkts 1.1&1.2 + * @useinstead Intl.ResolvedRelativeTimeFormatOptions */ export interface RelativeTimeFormatResolvedOptions { /** @@ -4449,10 +4071,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.RelativeTimeFormatResolvedOptions.locale - * @arkts 1.1&1.2 + * @useinstead Intl.ResolvedRelativeTimeFormatOptions.locale */ locale: string; @@ -4478,10 +4099,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.RelativeTimeFormatResolvedOptions.style - * @arkts 1.1&1.2 + * @useinstead Intl.ResolvedRelativeTimeFormatOptions.style */ style: string; @@ -4507,10 +4127,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.RelativeTimeFormatResolvedOptions.numeric - * @arkts 1.1&1.2 + * @useinstead Intl.ResolvedRelativeTimeFormatOptions.numeric */ numeric: string; @@ -4539,10 +4158,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 - * @useinstead Intl.RelativeTimeFormatResolvedOptions.numberingSystem - * @arkts 1.1&1.2 + * @useinstead Intl.ResolvedRelativeTimeFormatOptions.numberingSystem */ numberingSystem: string; } @@ -4569,10 +4187,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.RelativeTimeFormat - * @arkts 1.1&1.2 */ export class RelativeTimeFormat { /** @@ -4594,10 +4211,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.RelativeTimeFormat.constructor - * @arkts 1.1&1.2 */ constructor(); @@ -4629,10 +4245,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.RelativeTimeFormat.constructor - * @arkts 1.1&1.2 */ constructor(locale: string | Array, options?: RelativeTimeFormatInputOptions); @@ -4667,10 +4282,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.RelativeTimeFormat.format - * @arkts 1.1&1.2 */ format(value: double, unit: string): string; @@ -4707,10 +4321,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.RelativeTimeFormat.formatToParts - * @arkts 1.1&1.2 */ formatToParts(value: double, unit: string): Array; @@ -4738,10 +4351,9 @@ declare namespace intl { * @syscap SystemCapability.Global.I18n * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 12 * @deprecated since 20 * @useinstead Intl.RelativeTimeFormat.resolvedOptions - * @arkts 1.1&1.2 */ resolvedOptions(): RelativeTimeFormatResolvedOptions; } diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets index 551db8d10f9751d30b8226442460cb8d921a1dd4..b75555efd3e6292ec6c7c19ada01b7cfc4f9b157 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -15283,13 +15283,13 @@ export declare interface TerminationInfo { /** * Defines the format for displaying dates and times. * - * @typedef { intl.DateTimeOptions } DateTimeOptions + * @typedef { Intl.DateTimeFormatOptions } DateTimeOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 */ -export type DateTimeOptions = intl.DateTimeOptions; +export type DateTimeOptions = Intl.DateTimeFormatOptions; /** * Defines a bindable property * @interface Bindable diff --git a/api/arkui/component/units.d.ets b/api/arkui/component/units.d.ets index 4526b8f3ae02ae1d4fd06758a989896aeda5c158..e79777f9feae76687cf1cb2ce86850300b67ae4d 100644 --- a/api/arkui/component/units.d.ets +++ b/api/arkui/component/units.d.ets @@ -34,7 +34,6 @@ import _unifieddatachannel from '../../../api/@ohos.data.unifiedDataChannel' import _uniformtypedescriptor from '../../../api/@ohos.data.uniformTypeDescriptor' import _observer from '../../../api/@ohos.arkui.observer' import _uieffect from '../../../api/@ohos.graphics.uiEffect' -import _intl from '../../../api/@ohos.intl' import _window from '../../../api/@ohos.window' export type Want = _want export type Context = _context @@ -50,7 +49,7 @@ export type RouterPageInfo = _observer.RouterPageInfo export type VisualEffect = _uieffect.VisualEffect export type Filter = _uieffect.Filter export type Blender = NullishType -export type DateTimeOptions = _intl.DateTimeOptions +export type DateTimeOptions = Intl.DateTimeFormatOptions export type WindowStatusType = _window.WindowStatusType export type SystemBarStyle = _window.SystemBarStyle export type RestrictedWorker = string