Update dependencies

This commit is contained in:
Maksim Eltyshev
2020-05-26 14:10:06 +05:00
parent c8029cbf37
commit 06f484dc72
7 changed files with 571 additions and 1823 deletions

View File

@@ -31,6 +31,10 @@ i18n.dateFns = {
},
};
i18n.on('languageChanged', (language) => {
setDefaultLocale(language);
});
const formatDatePostProcessor = {
type: 'postProcessor',
name: 'formatDate',
@@ -88,8 +92,4 @@ i18n.loadAppLocale = (language) =>
});
});
i18n.on('languageChanged', (language) => {
setDefaultLocale(language);
});
export default i18n;