From 535e1b35ec0e6500ff199d7c447d7dbc3de1ab80 Mon Sep 17 00:00:00 2001 From: clam <529474551@qq.com> Date: Tue, 10 Aug 2021 11:33:04 +0800 Subject: [PATCH] fix(locale): update error url and remove useless code (#2852) Co-authored-by: zhangweiwei --- packages/locale/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/locale/index.ts b/packages/locale/index.ts index 13f0b3026e..a2d61c8bfd 100644 --- a/packages/locale/index.ts +++ b/packages/locale/index.ts @@ -43,7 +43,6 @@ const defaultTranslator = (...args: any[]) => { } export const t = (...args: any[]): string => { - console.warn if (i18nHandler) { const translation = i18nHandler(...args) return translation || defaultTranslator(...args) @@ -57,7 +56,7 @@ export const use = (l: Language): void => { console.warn(`[deprecation]: The previous i18n usage is deprecated please update to the new one to get reactive i18n translations, refer to: - https://element-plus.org/#/en-US/i18n + https://element-plus.org/#/en-US/component/i18n `) }