chore: typo

This commit is contained in:
Vben
2021-02-28 23:05:37 +08:00
parent 15567e478c
commit c8e84dc14e
7 changed files with 19 additions and 13 deletions

View File

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