style: Misspelling

This commit is contained in:
kailong321200875
2022-08-13 08:32:12 +08:00
parent ff59fc7e13
commit c43e833582
8 changed files with 36 additions and 36 deletions

View File

@@ -41,7 +41,7 @@ export const useI18n = (
const tFn: I18nGlobalTranslation = (key: string, ...arg: any[]) => {
if (!key) return ''
if (!key.includes('.') && !namespace) return key
return t(getKey(namespace, key), ...(arg as I18nTranslationRestParameters))
return (t as any)(getKey(namespace, key), ...(arg as I18nTranslationRestParameters))
}
return {
...methods,