mirror of
https://github.com/youzan/vant.git
synced 2025-12-24 02:02:09 +08:00
types: fix translate typing
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user