From 7c932b4b01c8cf9d7372cd924721fa72b9462330 Mon Sep 17 00:00:00 2001 From: sunyaozu Date: Thu, 10 Feb 2022 09:18:42 +0800 Subject: [PATCH] fix syscap of intl and i18n Signed-off-by: sunyaozu --- api/@ohos.i18n.d.ts | 132 ++++++++++++++++++++++---------------------- api/@ohos.intl.d.ts | 70 +++++++++++------------ 2 files changed, 101 insertions(+), 101 deletions(-) diff --git a/api/@ohos.i18n.d.ts b/api/@ohos.i18n.d.ts index 5f3a43dcd7..a811d9a20c 100644 --- a/api/@ohos.i18n.d.ts +++ b/api/@ohos.i18n.d.ts @@ -16,7 +16,7 @@ /** * Provides international settings related APIs. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 7 * @devices phone, tablet, tv, wearable, car */ @@ -24,7 +24,7 @@ declare namespace i18n { /** * Obtains the country or region name localized for display on a given locale. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param country The locale whose country or region name will be displayed. * @param locale The locale used to display the country or region. * @param sentenceCase Specifies whether the country or region name is displayed in sentence case. @@ -36,7 +36,7 @@ export function getDisplayCountry(country: string, locale: string, sentenceCase? /** * Obtains the language name localized for display on a given locale. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param language The locale whose language name will be displayed. * @param locale The locale used to display the language. * @param sentenceCase Specifies whether the language name is displayed in sentence case. @@ -48,7 +48,7 @@ export function getDisplayLanguage(language: string, locale: string, sentenceCas /** * Obtain all languages supported by the system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns all languages supported by the system. * @since 7 * @systemapi Hide this for inner system use. @@ -58,7 +58,7 @@ export function getSystemLanguages(): Array; /** * Obtain all regions supported by the system in the language. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param language The language used to get the list of regions. * @return Returns all regions supported by the system in the language. * @since 7 @@ -69,7 +69,7 @@ export function getSystemCountries(language: string): Array; /** * Determine whether the current language or region is recommended. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param language The language code. * @param region The region code. * @return Returns whether the current language or region is recommended. @@ -81,7 +81,7 @@ export function isSuggested(language: string, region?: string): boolean; /** * Obtain the language currently used by the system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the language currently used by the system. * @since 7 */ @@ -90,7 +90,7 @@ export function getSystemLanguage(): string; /** * Set the language currently used by the system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param language The language to be used. * @since 7 * @systemapi Hide this for inner system use. @@ -100,7 +100,7 @@ export function setSystemLanguage(language: string): boolean; /** * Obtain the region currently used by the system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the region currently used by the system. * @since 7 */ @@ -109,7 +109,7 @@ export function getSystemRegion(): string; /** * Set the region currently used by the system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param region The region to be used. * @since 7 * @systemapi Hide this for inner system use. @@ -119,7 +119,7 @@ export function setSystemRegion(region: string): boolean; /** * Obtain the locale currently used by the system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the locale currently used by the system. * @since 7 */ @@ -128,7 +128,7 @@ export function getSystemLocale(): string; /** * Set the locale currently used by the system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale The locale to be used. * @since 7 * @systemapi Hide this for inner system use. @@ -138,14 +138,14 @@ export function setSystemLocale(locale: string): boolean; /** * Provides util functions. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export interface Util { /** * Convert from unit to to unit and format according to the locale. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param fromUnit Information of the unit to be converted. * @param toUnit Information about the unit to be converted to. * @param value Indicates the number to be formatted. @@ -159,7 +159,7 @@ export interface Util { /** * Provides the options of unit. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export interface UnitInfo { @@ -177,7 +177,7 @@ export interface UnitInfo { /** * Provides the options of PhoneNumberFormat. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export interface PhoneNumberFormatOptions { @@ -190,14 +190,14 @@ export interface PhoneNumberFormatOptions { /** * Provides the API for formatting phone number strings * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export class PhoneNumberFormat { /** * A constructor used to create a PhoneNumberFormat object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param country Indicates a character string containing the country information for the PhoneNumberFormat object. * @param type Indicates the type used to format the phone number, includes: "E164", "RFC3966", "INTERNATIONAL", "NATIONAL". * @since 8 @@ -207,7 +207,7 @@ export class PhoneNumberFormat { /** * Judges whether phone number is valid. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param number Indicates the input phone number to be judged. * @return Returns a boolean indicates whether the input phone number is valid. * @since 8 @@ -217,7 +217,7 @@ export class PhoneNumberFormat { /** * Obtains the formatted phone number strings of number. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param number Indicates the input phone number to be formatted. * @return Returns the formatted phone number. * @since 8 @@ -228,7 +228,7 @@ export class PhoneNumberFormat { /** * Get a Calendar instance specified by locale and type. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale The locale used to get calendar. * @param type If type is not specified, get locale's default Calendar, else get the specified type of Calendar. * such as buddhist, chinese, coptic, ethiopic, hebrew, gregory, indian, islamic_civil, islamic_tbla, islamic_umalqura, @@ -241,7 +241,7 @@ export class Calendar { /** * set the date. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param date Date object used to set the time and date. * @since 8 */ @@ -250,7 +250,7 @@ export class Calendar { /** * set the time. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param time Indicates the elapsed milliseconds from 1970.1.1 00:00:00 GMT. * @since 8 */ @@ -259,7 +259,7 @@ export class Calendar { /** * Set the time * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param year The year field of the calendar, ranges from 0 to 9999. * @param month The month field of the calendar, ranges from 0 to 11. * @param date The day field of the calendar, ranges from 1 to 31. @@ -273,7 +273,7 @@ export class Calendar { /** * Set the timezone of this calendar. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param timezone The id of a timezone. * @since 8 */ @@ -282,7 +282,7 @@ export class Calendar { /** * Get the timezone id of this calendar instance. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the timezone id of this calendar. * @since 8 */ @@ -291,7 +291,7 @@ export class Calendar { /** * Get the start day of a week. 1 indicates Sunday, 7 indicates Saturday. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns start day of a week. * @since 8 */ @@ -300,7 +300,7 @@ export class Calendar { /** * Set the start day of a week. 1 indicates Sunday, 7 indicates Saturday. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param value Indicates the start day of a week. 1 indicates Sunday, 7 indicates Saturday. * @since 8 */ @@ -309,7 +309,7 @@ export class Calendar { /** * Get the minimal days of a week, which is needed for the first day of a year. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the minimal days of a week. * @since 8 */ @@ -318,7 +318,7 @@ export class Calendar { /** * Set the minimal days of a week, which is needed for the first week of a year. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param value The value to be set. * @since 8 */ @@ -327,7 +327,7 @@ export class Calendar { /** * Get the associated value with the field. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param field Field values such as era, year, month, week_of_year, week_of_month, date, day_of_year, day_of_week * day_of_week_in_month, hour, hour_of_day, minute, second, millisecond, zone_offset, dst_offset, year_woy, * dow_local, extended_year, julian_day, milliseconds_in_day, is_leap_month. @@ -339,7 +339,7 @@ export class Calendar { /** * Get calendar's name localized for display in the given locale. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale Locale used to get the localized name for this calendar. * @return Returns the localized name of this calendar. * @since 8 @@ -350,7 +350,7 @@ export class Calendar { * Returns true if the given date is a weekend day. If the date is not given, * the date object of this calendar is used. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param date Date object whose attribute is desired. * @return Returns whether the date is a weekend day. * @since 8 @@ -361,7 +361,7 @@ export class Calendar { /** * Judge whether the locale is RTL locale. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale The locale to be used. * @return Returns true representing the locale is an RTL locale * @@ -372,7 +372,7 @@ export function isRTL(locale: string): boolean; /** * Obtains a BreakIterator object for finding the location of break point in text. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale the returned BreakIterator will adapt the rule, specified by the locale, to break text. * @return Returns a newly constructed BreakIterator object. * @since 8 @@ -382,14 +382,14 @@ export function isRTL(locale: string): boolean; /** * The BreakIterator class is used for finding the location of break point in text. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export class BreakIterator { /** * Obtains the current position of the BreakIterator instance. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the current position of the BreakIterator instance. * @since 8 */ @@ -399,7 +399,7 @@ export class BreakIterator { * Set the BreakIterator's position to the first break point, the first break point is always the beginning of the * processed text. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the index of the first break point. * @since 8 */ @@ -409,7 +409,7 @@ export class BreakIterator { * Set the BreakIterator's position to the last break point. the last break point is always the index beyond the * last character of the processed text. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the index of the last break point. * @since 8 */ @@ -418,7 +418,7 @@ export class BreakIterator { /** * Set the BreakItertor's position to the nth break point from the current break point. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param index indicates the number of break points to advance. If index is not given, n is treated as 1. * @return Returns the index of the BreakIterator after moving. If there is not enough break points, returns -1. * @since 8 @@ -428,7 +428,7 @@ export class BreakIterator { /** * Set the BreakItertor's position to the break point preceding the current break point. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the index of the BreakIterator after moving. If there is not enough break points, returns -1. * @since 8 */ @@ -437,7 +437,7 @@ export class BreakIterator { /** * Set the text to be processed. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param text Indicates the text to be processed by the BreakIterator. * @since 8 */ @@ -446,7 +446,7 @@ export class BreakIterator { /** * Set the BreakIterator's position to the first break point following the specified offset. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the index of the BreakIterator after moving. If there is not enough break points, returns -1. * @since 8 */ @@ -455,7 +455,7 @@ export class BreakIterator { /** * Obtains the text being processed. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the text that is processed by the BreakIterator. * @since 8 */ @@ -466,7 +466,7 @@ export class BreakIterator { * position will be set to the position indicated by the offset if it returns true, otherwise the BreakIterator * will be moved to the break point following the offset. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param offset The offset to be checked. * @return Returns true if the offset is a break point. * @since 8 @@ -478,14 +478,14 @@ export class BreakIterator { * Sequence text can be grouped under the specified area, * and grouping index with different lengths can be specified. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export class IndexUtil { /** * Get IndexUtil object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale Indicates a character string containing the locale information, including * the language and optionally the script and region, for the NumberFormat object. * @return Returns IndexUtil object. @@ -496,7 +496,7 @@ export class IndexUtil { /** * Get a list of labels for use as a UI index * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns a list of labels * @since 8 */ @@ -505,7 +505,7 @@ export class IndexUtil { /** * Add the index characters from a Locale to the index. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale The locale whose index characters are to be added. * @since 8 */ @@ -514,7 +514,7 @@ export class IndexUtil { /** * Get corresponding index of the input text. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param text input text * @since 8 */ @@ -524,14 +524,14 @@ export class IndexUtil { /** * Provides the API for accessing unicode character properties, sunch as whether a character is a digit. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export class Character { /** * Determines whether the specified code point is a digit character * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param char the character to be tested * @return Returns true if the character is a digit character */ @@ -540,7 +540,7 @@ export class Character { /** * Determines if the specified character is a space character or not. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param char the character to be tested * @return Returns true if the character is a space character */ @@ -549,7 +549,7 @@ export class Character { /** * Determines if the specified character is a whitespace character * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param char the character to be tested * @return Returns true if the character is a whitespace character */ @@ -558,7 +558,7 @@ export class Character { /** * Determines if the specified character is a RTL character or not. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param char the character to be tested * @return Returns true if the character is a RTL character */ @@ -567,7 +567,7 @@ export class Character { /** * Determines if the specified character is a Ideographic character or not. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param char the character to be tested * @return Returns true if the character is a Ideographic character */ @@ -576,7 +576,7 @@ export class Character { /** * Determines if the specified character is a Letter or not. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param char the character to be tested * @return Returns true if the character is a Letter */ @@ -585,7 +585,7 @@ export class Character { /** * Determines if the specified character is a LowerCase character or not. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param char the character to be tested * @return Returns true if the character is a LowerCase character */ @@ -594,7 +594,7 @@ export class Character { /** * Determines if the specified character is a UpperCase character or not. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param char the character to be tested * @return Returns true if the character is a UpperCase character */ @@ -603,7 +603,7 @@ export class Character { /** * Get the general category value of the specified character. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param char the character to be tested * @return Returns the general category of the specified character. */ @@ -613,7 +613,7 @@ export class Character { /** * check out whether system is 24-hour system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns a boolean represent whether system is 24-hour system. * @since 8 */ @@ -622,7 +622,7 @@ export class Character { /** * set 24-hour system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param option represent the boolean to be set. * @return Returns a boolean represent whether setting 24-hour system success. * @since 8 @@ -632,7 +632,7 @@ export class Character { /** * Add one language to preferred language List. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param language the language to be added. * @param index the position of preferred language list to be inserted. * @return Returns a boolean represent whether language added success. @@ -643,7 +643,7 @@ export function addPreferredLanguage(language: string, index?: number): boolean; /** * Remove one language from preferred language list. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param index the position of removed language in preferred language list. * @return Returns a boolean represent whether removed success. * @since 8 @@ -653,7 +653,7 @@ export function removePreferredLanguage(index: number): boolean; /** * Access the system preferred language list. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns a string Array represent the preferred language list. * @since 8 */ @@ -662,7 +662,7 @@ export function getPreferredLanguageList(): Array; /** * Get the first preferred language of system. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns a string represent the first preferred language of system. * @since 8 */ diff --git a/api/@ohos.intl.d.ts b/api/@ohos.intl.d.ts index 3aed612877..3928dd8878 100755 --- a/api/@ohos.intl.d.ts +++ b/api/@ohos.intl.d.ts @@ -16,7 +16,7 @@ /** * Provides internationalization related APIs. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 6 * @devices phone, tablet, tv, wearable, car */ @@ -25,7 +25,7 @@ declare namespace intl { * Provides the options of Locale. * * @since 8 - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n */ export interface LocaleOptions { /** @@ -74,14 +74,14 @@ export interface LocaleOptions { /** * Provides APIs for obtaining locale information. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 6 */ export class Locale { /** * A constructor used to create a Locale object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale Indicates a character string containing the locale information, including * the language and optionally the script and region. * @since 6 @@ -91,7 +91,7 @@ export class Locale { /** * Indicates the language of the locale. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 6 */ language: string @@ -99,7 +99,7 @@ export class Locale { /** * Indicates the script of the locale. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 6 */ script: string @@ -107,7 +107,7 @@ export class Locale { /** * Indicates the region of the locale. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 6 */ region: string @@ -116,7 +116,7 @@ export class Locale { * Indicates the basic locale information, which is returned as a substring of * a complete locale string. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 6 */ baseName: string @@ -154,7 +154,7 @@ export class Locale { /** * Convert the locale information to string. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns locale information in string form. */ toString(): string; @@ -162,7 +162,7 @@ export class Locale { /** * Maximize the locale's base information. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns maximized locale. */ maximize(): Locale; @@ -170,7 +170,7 @@ export class Locale { /** * Minimize the locale's base information. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns minimized locale. */ minimize(): Locale; @@ -179,7 +179,7 @@ export class Locale { /** * Provides the options of date time format. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n */ export interface DateTimeOptions { /** @@ -281,14 +281,14 @@ export interface DateTimeOptions { /** * Provides the API for formatting date strings. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 6 */ export class DateTimeFormat { /** * A constructor used to create a DateTimeFormat object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ constructor(); @@ -296,7 +296,7 @@ export class DateTimeFormat { /** * A constructor used to create a DateTimeFormat object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale Indicates character string containing the locale information, including * the language and optionally the script and region, for the DateTimeFormat object. * @param options Indicates the options used to format the date. @@ -307,7 +307,7 @@ export class DateTimeFormat { /** * Obtains the formatted date strings. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param date Indicates the Date object to be formatted. * @return Returns a date string formatted based on the specified locale. * @since 6 @@ -317,7 +317,7 @@ export class DateTimeFormat { /** * Obtains the formatted date strings of a date range. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param startDate Indicates the start date of the date range. * @param endDate Indicates the end date of the date range. * @return Returns a date string formatted based on the specified locale. @@ -328,7 +328,7 @@ export class DateTimeFormat { /** * Obtains the options of the DateTimeFormat object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the options of the DateTimeFormat object. * @since 6 */ @@ -338,7 +338,7 @@ export class DateTimeFormat { /** * Provides the options of number format. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n */ export interface NumberOptions { /** @@ -440,13 +440,13 @@ export interface NumberOptions { /** * Provides the API for formatting number strings. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n */ export class NumberFormat { /** * A constructor used to create a NumberFormat object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ constructor(); @@ -454,7 +454,7 @@ export class NumberFormat { /** * A constructor used to create a NumberFormat object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale Indicates a character string containing the locale information, including * the language and optionally the script and region, for the NumberFormat object. * @param options Indicates the options used to format the number. @@ -465,7 +465,7 @@ export class NumberFormat { /** * Obtains the formatted number string. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param number Indicates the number to be formatted. * @return Returns a number string formatted based on the specified locale. * @since 6 @@ -475,7 +475,7 @@ export class NumberFormat { /** * Obtains the options of the NumberFormat object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns the options of the NumberFormat object. * @since 6 */ @@ -485,7 +485,7 @@ export class NumberFormat { /** * Provides the options of Collator * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export interface CollatorOptions { @@ -534,21 +534,21 @@ export interface CollatorOptions { /** * Enable language-sensitive string comparison. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export class Collator { /** * A constructor used to create Collator object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ constructor(); /** * A constructor used to create Collator Object; * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale Indicates a character string containing the locale information, including * the language and optionally the script and region, for the Collator object. * @param options Indicates the options used to initialize Collator object. @@ -559,7 +559,7 @@ export class Collator { /** * compares two strings according to the sort order of this Collator object * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param first The first string to compare. * @param second The second string to compare. * @return Returns a number indicating how first compare to second: @@ -574,7 +574,7 @@ export class Collator { * Returns a new object with properties reflecting the locale and collation options computed * during initialization of the object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @return Returns a CollatorOptions object reflecting the properties of this object. * @since 8 */ @@ -584,7 +584,7 @@ export class Collator { /** * Provides the options of PluralRules * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export interface PluralRulesOptions { @@ -634,14 +634,14 @@ export interface PluralRulesOptions { /** * Enables plural-sensitive formatting and plural-related language rules. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ export class PluralRules { /** * A constructor used to create PluralRules object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @since 8 */ constructor(); @@ -649,7 +649,7 @@ export class PluralRules { /** * A constructor used to create PluralRules object. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param locale Indicates a character string containing the locale information, including * the language and optionally the script and region, for the PluralRules object. * @param options Indicates the options used to initialize PluralRules object. @@ -660,7 +660,7 @@ export class PluralRules { /** * Returns a string indicating which plural rule to use for locale-aware formatting. * - * @sysCap SystemCapability.I18N + * @sysCap SystemCapability.Global.I18n * @param n The number to get a plural rule for. * @return A string representing the pluralization category of the number, * can be one of zero, one, two, few, many or other. -- Gitee