Skip to content

Commit

Permalink
trying Intl without polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
leider committed Jun 27, 2019
1 parent f9d742c commit d91a0af
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions softwerkskammer/lib/commons/fieldHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ const { DateTime } = require('luxon');
const conf = require('simple-configure');
const misc = conf.get('beans').get('misc');

// adding additional languages to builtin Intl
if (!require('intl-locales-supported')(['de', 'en-GB'])) {
// `Intl` exists, but it doesn't have the data we need, so load the
// polyfill and replace the constructors we need with the polyfill's.
const IntlPolyfill = require('intl');
Intl.NumberFormat = IntlPolyfill.NumberFormat;
Intl.DateTimeFormat = IntlPolyfill.DateTimeFormat;
}

module.exports = {
isFilled: function isFilled(someValue) {
return someValue !== undefined && someValue !== null && someValue !== 'undefined' &&
Expand Down

0 comments on commit d91a0af

Please sign in to comment.