diff --git a/packages/ra-i18n-polyglot/src/index.ts b/packages/ra-i18n-polyglot/src/index.ts index 27f6ce3cc7..336cc860d2 100644 --- a/packages/ra-i18n-polyglot/src/index.ts +++ b/packages/ra-i18n-polyglot/src/index.ts @@ -45,7 +45,7 @@ export default ( // so we systematically return a Promise for the messages // i18nProvider may return a Promise for language changes, resolve(getMessages(newLocale as string)) - ).then(messages => { + ).then((messages: Object) => { locale = newLocale; const newPolyglot = new Polyglot({ locale: newLocale,