fix: i18n

This commit is contained in:
xiaoxian521
2021-11-16 13:49:24 +08:00
parent f0a5f02588
commit 35f2f9e93f
2 changed files with 10 additions and 8 deletions

View File

@@ -1,11 +1,12 @@
import { i18n } from "../plugins/i18n";
/**
* 消息转换
* @param message message
* @param isI18n 如果true,获取对应的消息,否则返回this
* @returns message
*/
export function transformI18n(message = "", isI18n: Boolean = false) {
export function transformI18n(message = "", isI18n = false) {
if (!message) {
return "";
}