From 82d019099ff1107c7f4ffd3473d25867db9641b4 Mon Sep 17 00:00:00 2001 From: Fernando Date: Fri, 3 Apr 2020 20:24:04 +0200 Subject: [PATCH 1/2] Prepare dfnshelper.js for AMD conversion Co-Authored-By: Julien Machiels --- src/scripts/dfnshelper.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scripts/dfnshelper.js b/src/scripts/dfnshelper.js index 01d032f223..ada97a14b4 100644 --- a/src/scripts/dfnshelper.js +++ b/src/scripts/dfnshelper.js @@ -95,4 +95,10 @@ export function getLocale() { return enUS; } } + export const localeWithSuffix = { addSuffix: true, locale: getLocale() }; + +export default { + getLocale: getLocale, + localeWithSuffix, localeWithSuffix +} From e734f7c793d413d7586226ba41a96819dd9dbb2f Mon Sep 17 00:00:00 2001 From: Fernando Date: Fri, 3 Apr 2020 20:55:43 +0200 Subject: [PATCH 2/2] Update src/scripts/dfnshelper.js Co-Authored-By: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- src/scripts/dfnshelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/dfnshelper.js b/src/scripts/dfnshelper.js index ada97a14b4..a593c42c0d 100644 --- a/src/scripts/dfnshelper.js +++ b/src/scripts/dfnshelper.js @@ -100,5 +100,5 @@ export const localeWithSuffix = { addSuffix: true, locale: getLocale() }; export default { getLocale: getLocale, - localeWithSuffix, localeWithSuffix + localeWithSuffix: localeWithSuffix }