Optimize loading of date-fns
This commit is contained in:
parent
88a01888bf
commit
b3febe49ad
4 changed files with 97 additions and 74 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue