From eaaac546b9465cb08bfadbfd7732110d81a0fce3 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Thu, 17 Sep 2015 07:47:23 -0500 Subject: [PATCH] Move translator file into helpers folder --- common/script/content/faq.js | 3 +-- .../script/content/{translation.js => helpers/translator.js} | 2 +- common/script/content/index.coffee | 2 +- common/script/content/spells/index.js | 2 +- common/script/content/time-traveler-stable.js | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) rename common/script/content/{translation.js => helpers/translator.js} (88%) diff --git a/common/script/content/faq.js b/common/script/content/faq.js index d0b9173272..09752d1002 100644 --- a/common/script/content/faq.js +++ b/common/script/content/faq.js @@ -1,7 +1,6 @@ 'use strict'; -require('coffee-script'); -var t = require('./translation.js'); +var t = require('./helpers/translator.js'); var NUMBER_OF_QUESTIONS = 12; diff --git a/common/script/content/translation.js b/common/script/content/helpers/translator.js similarity index 88% rename from common/script/content/translation.js rename to common/script/content/helpers/translator.js index e0e26450c5..935a377120 100644 --- a/common/script/content/translation.js +++ b/common/script/content/helpers/translator.js @@ -1,7 +1,7 @@ 'use strict'; require('coffee-script'); -var i18n = require('../i18n.coffee'); +var i18n = require('../../i18n.coffee'); var t = function(string, vars) { var func = function(lang) { diff --git a/common/script/content/index.coffee b/common/script/content/index.coffee index 056792be28..6fc9720b87 100644 --- a/common/script/content/index.coffee +++ b/common/script/content/index.coffee @@ -2,7 +2,7 @@ api = module.exports _ = require 'lodash' moment = require 'moment' -t = require './translation.js' +t = require './helpers/translator.js' ### --------------------------------------------------------------- diff --git a/common/script/content/spells/index.js b/common/script/content/spells/index.js index 4d24ed2107..005ef5f920 100644 --- a/common/script/content/spells/index.js +++ b/common/script/content/spells/index.js @@ -1,6 +1,6 @@ 'use strict'; -var t = require('../translation.js'); +var t = require('../helpers/translator.js'); /* --------------------------------------------------------------- diff --git a/common/script/content/time-traveler-stable.js b/common/script/content/time-traveler-stable.js index 3fb51a637c..ad60931d08 100644 --- a/common/script/content/time-traveler-stable.js +++ b/common/script/content/time-traveler-stable.js @@ -1,6 +1,6 @@ 'use strict'; -var t = require('./translation.js'); +var t = require('./helpers/translator.js'); var stable = { pets: {