mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(locale): update error url and remove useless code (#2852)
Co-authored-by: zhangweiwei <zhangweiwei12@huawei.com>
This commit is contained in:
@@ -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
|
||||
`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user