diff --git a/common/script/src/content/eggs/drops.js b/common/script/src/content/eggs/drops.js index b49af6ba62..3f20232956 100644 --- a/common/script/src/content/eggs/drops.js +++ b/common/script/src/content/eggs/drops.js @@ -1,5 +1,5 @@ -let each = require('lodash').each; -let t = require('../helpers/translator'); +import {each} from 'lodash'; +import t from '../helpers/translator'; const DROP_EGGS = [ 'Wolf', diff --git a/common/script/src/content/faq.js b/common/script/src/content/faq.js index d91bfbaebe..08175a9d0e 100644 --- a/common/script/src/content/faq.js +++ b/common/script/src/content/faq.js @@ -1,4 +1,4 @@ -let t = require('./helpers/translator'); +import t from './helpers/translator'; const NUMBER_OF_QUESTIONS = 12; diff --git a/common/script/src/content/helpers/translator.js b/common/script/src/content/helpers/translator.js index 3fffda4c74..48da48d63d 100644 --- a/common/script/src/content/helpers/translator.js +++ b/common/script/src/content/helpers/translator.js @@ -1,7 +1,5 @@ -'use strict'; - require('coffee-script'); -var i18n = require('../../../../script/i18n.coffee'); +import i18n from '../../../../script/i18n.coffee'; var t = function(string, vars) { var func = function(lang) { diff --git a/common/script/src/content/mystery-sets.js b/common/script/src/content/mystery-sets.js index eb345c8ac4..c39b5fd67b 100644 --- a/common/script/src/content/mystery-sets.js +++ b/common/script/src/content/mystery-sets.js @@ -1,4 +1,4 @@ -let each = require('lodash').each; +import {each} from 'lodash'; let mysterySets = { 201402: { diff --git a/common/script/src/content/spells/index.js b/common/script/src/content/spells/index.js index 7230814b05..b1265e1f72 100644 --- a/common/script/src/content/spells/index.js +++ b/common/script/src/content/spells/index.js @@ -1,6 +1,4 @@ -'use strict'; - -var t = require('../helpers/translator.js'); +import t from '../helpers/translator'; /* --------------------------------------------------------------- diff --git a/common/script/src/content/time-traveler-stable.js b/common/script/src/content/time-traveler-stable.js index 0d4c67efb6..2aaeb1bce4 100644 --- a/common/script/src/content/time-traveler-stable.js +++ b/common/script/src/content/time-traveler-stable.js @@ -1,4 +1,4 @@ -let t = require('./helpers/translator'); +import t from './helpers/translator'; let stable = { pets: {