From 357b4c7a4c2ecc7888958d5dc6ed56f2f6f6800f Mon Sep 17 00:00:00 2001 From: Fernando Date: Thu, 2 Apr 2020 22:04:36 +0200 Subject: [PATCH] Moved to ES6 Co-Authored-By: Julien Machiels --- src/scripts/dfnshelper.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/scripts/dfnshelper.js b/src/scripts/dfnshelper.js index 0efc6aa6fe..6f4ef6d393 100644 --- a/src/scripts/dfnshelper.js +++ b/src/scripts/dfnshelper.js @@ -1,5 +1,6 @@ -import * as locale from 'date-fns/locale' -define(["globalize"], function (globalize) { +import { ar, be, bg, ca, cs, da, de, el, enGB, enUS, es, faIR, fi, fr, frCA, he, hi, hr, hu, id, it, kk, ko, lt, ms, nb, nl, pl, ptBR, pt, ro, ru, sk, sl, sv, tr, uk, vi, zhCN, zhTW } from 'date-fns/locale'; +import globalize from 'globalize'; + "use strict"; function getLocale() @@ -100,4 +101,4 @@ define(["globalize"], function (globalize) { return { getLocale: getLocale }; -}); \ No newline at end of file +});