From ec73cf5cf07ee0a2865a28810d6521e864c6dfac Mon Sep 17 00:00:00 2001 From: asvarcas Date: Wed, 18 Dec 2019 10:28:31 -0300 Subject: [PATCH] Added missing type to parameter. --- packages/ra-i18n-polyglot/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-i18n-polyglot/src/index.ts b/packages/ra-i18n-polyglot/src/index.ts index 27f6ce3cc72..336cc860d2c 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,