This commit is contained in:
asd
2020-10-28 17:28:50 +08:00
parent ce602a5ff9
commit d65c7f8012
9 changed files with 121 additions and 40 deletions

View File

@@ -13,6 +13,7 @@ const createI18n = (config: Config) => ({
locale: ref(config.locale),
messages: config.messages,
$t(key: string) {
console.log(key)
return this.messages[this.locale.value][key];
},
$s(){