From 09477e60ebf3b073bfb848c6a7a73769734a4472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Sun, 16 Jun 2024 15:14:03 +0800 Subject: [PATCH] =?UTF-8?q?refine(i18n):=20=E5=87=BD=E6=95=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locale/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locale/index.ts b/src/locale/index.ts index a3e9cb0..07eb96d 100644 --- a/src/locale/index.ts +++ b/src/locale/index.ts @@ -37,6 +37,7 @@ export const translate = (localeKey: string) => { /** * formatString('已阅读并同意{0}和{1}','用户协议','隐私政策') -> 已阅读并同意用户协议和隐私政策 + * @deprecated 推荐使用下面的 formatI18n,使用key而不是索引,语义化更好 * @param template * @param values * @returns