We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9892a50 commit 0f2a40bCopy full SHA for 0f2a40b
packages/ui/src/services/i18n.ts
@@ -12,8 +12,10 @@ const dateFnsLocaleMap = {
12
async function setDateFnsLocale(lng: string) {
13
const languageToLoad = dateFnsLocaleMap[lng as keyof typeof dateFnsLocaleMap] || lng;
14
dateFnsLocale = await import(`date-fns/locale/${languageToLoad}/index.js`).catch((e) => {
15
- // eslint-disable-next-line no-console
16
- console.info(e);
+ if (process.env.NODE_ENV === 'development') {
+ // eslint-disable-next-line no-console
17
+ console.info(e);
18
+ }
19
20
return enLocale;
21
});
0 commit comments