diff options
-rw-r--r-- | src/components/Properties/PropertyDateTime.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Properties/PropertyDateTime.vue b/src/components/Properties/PropertyDateTime.vue index 3b2430f6..c1079a3b 100644 --- a/src/components/Properties/PropertyDateTime.vue +++ b/src/components/Properties/PropertyDateTime.vue @@ -157,13 +157,13 @@ export default { try { // default load e.g. fr-fr - await import('moment/locale/' + locale) + await import(/* webpackChunkName: 'moment' */'moment/locale/' + locale) this.locale = locale } catch (e) { try { // failure: fallback to fr locale = locale.split('-')[0] - await import('moment/locale/' + locale) + await import(/* webpackChunkName: 'moment' */'moment/locale/' + locale) } catch (e) { // failure, fallback to english console.debug('Fallback to locale', 'en') |