From 1cbf40c3331af2852e081e2f8d2633cdfaf1d74e Mon Sep 17 00:00:00 2001 From: qiang Date: Thu, 26 Aug 2021 22:19:06 +0800 Subject: [PATCH] docs: update locale --- docs/api/_sidebar.md | 1 + docs/api/ui/locale.md | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docs/api/_sidebar.md b/docs/api/_sidebar.md index 8db3f10e51..549ca46b63 100644 --- a/docs/api/_sidebar.md +++ b/docs/api/_sidebar.md @@ -93,6 +93,7 @@ * [媒体查询](api/ui/media-query-observer.md) * [自定义组件](api/ui/nextTick.md) * [菜单](api/ui/menuButton.md) + * [语言](api/ui/locale.md) * 页面和窗体 * [页面](api/window/window.md) * [页面通讯](api/window/communication.md) diff --git a/docs/api/ui/locale.md b/docs/api/ui/locale.md index 75cd92f464..7bffec2dc8 100644 --- a/docs/api/ui/locale.md +++ b/docs/api/ui/locale.md @@ -2,6 +2,12 @@ 获取当前设置的语言 +**平台差异说明** + +|App|H5|微信小程序|支付宝小程序|百度小程序|字节跳动小程序|QQ小程序|华为快应用|360小程序| +|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|√|√|x|x|x|x|x|x|x| + 如果当前应用设置过语言,会获取到之前设置的语言,未设置会使用系统语言。 ### uni.setLocale(locale) -- GitLab