fix(locale): update error url and remove useless code (#2852)

Co-authored-by: zhangweiwei <zhangweiwei12@huawei.com>
This commit is contained in:
clam
2021-08-10 11:33:04 +08:00
committed by GitHub
parent 5bbf348ddd
commit 535e1b35ec

View File

@@ -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
`)
}