types: fix translate typing

This commit is contained in:
chenjiahan
2020-12-13 12:29:30 +08:00
parent 09858eb1d3
commit d38e4a6aa8
3 changed files with 8 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ export function useTranslate(i18n: Record<string, any>) {
const demoName = `demo-i18n-${demoUid++}`;
if (i18n) {
const locales = {};
const locales: Record<string, any> = {};
const camelizedName = camelize(demoName);
Object.keys(i18n).forEach((key) => {