From ad78334bb66ce6671da34343bef55085b38b7940 Mon Sep 17 00:00:00 2001 From: sunyaozu Date: Sat, 7 May 2022 10:09:26 +0800 Subject: [PATCH] add function getAppPreferredLanguage to i18n Signed-off-by: sunyaozu --- api/@ohos.i18n.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/@ohos.i18n.d.ts b/api/@ohos.i18n.d.ts index cbb3022756..7591d0b843 100644 --- a/api/@ohos.i18n.d.ts +++ b/api/@ohos.i18n.d.ts @@ -673,6 +673,15 @@ export function getPreferredLanguageList(): Array; */ export function getFirstPreferredLanguage(): string; +/** + * Get the preferred language of App. + * + * @syscap SystemCapability.Global.I18n + * @return Returns a string represent the preferred language of App. + * @since 9 + */ + export function getAppPreferredLanguage(): string; + /** * Get the default TimeZone object or the TimeZone object corresponds to zoneID. * -- Gitee