From 7b3478359112225c31515c48ee4db12f0f3e5878 Mon Sep 17 00:00:00 2001 From: sunyaozu Date: Fri, 4 Mar 2022 10:57:13 +0800 Subject: [PATCH] add default constructor of Locale class Signed-off-by: sunyaozu --- api/@ohos.intl.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/api/@ohos.intl.d.ts b/api/@ohos.intl.d.ts index 5bf8f664ee..cf384e6071 100755 --- a/api/@ohos.intl.d.ts +++ b/api/@ohos.intl.d.ts @@ -77,15 +77,24 @@ export interface LocaleOptions { * @since 6 */ export class Locale { + /** + * A constructor used to create a Locale object. + * + * @syscap SystemCapability.Global.I18n + * @since 6 + */ + constructor(); + /** * A constructor used to create a Locale object. * * @syscap SystemCapability.Global.I18n * @param locale Indicates a character string containing the locale information, including * the language and optionally the script and region. + * @param options Indicates Locale option object use to initialize the Locale object. * @since 6 */ - constructor(locale?: string, options?: LocaleOptions); + constructor(locale: string, options?: LocaleOptions); /** * Indicates the language of the locale. -- Gitee