Optimize loading of date-fns

This commit is contained in:
Bill Thornton 2022-11-03 00:52:12 -04:00
parent 88a01888bf
commit b3febe49ad
4 changed files with 97 additions and 74 deletions

View file

@ -2,6 +2,7 @@ import isEmpty from 'lodash-es/isEmpty';
import { currentSettings as userSettings } from './settings/userSettings';
import Events from '../utils/events.ts';
import { updateLocale } from './dfnshelper';
const Direction = {
rtl: 'rtl',
@ -100,6 +101,8 @@ const Direction = {
} else {
currentDateTimeCulture = currentCulture;
}
updateLocale(currentDateTimeCulture);
ensureTranslations(currentCulture);
}