From 94fc7554995e4b6fcd95e74d082ed411239ea8e9 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Wed, 8 Feb 2017 11:11:38 -0200 Subject: [#922] Add semincolon to lint and fix js code with @tayanefernandes --- web-ui/src/i18n.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'web-ui/src/i18n.js') diff --git a/web-ui/src/i18n.js b/web-ui/src/i18n.js index b68f17ae..bbbe2dcd 100644 --- a/web-ui/src/i18n.js +++ b/web-ui/src/i18n.js @@ -14,17 +14,17 @@ * You should have received a copy of the GNU Affero General Public License * along with Pixelated. If not, see . */ -import i18n from 'i18next' -import i18nBackend from 'i18nextXHRBackend' -import I18nDetector from 'i18nextBrowserLanguageDetector' +import i18n from 'i18next'; +import i18nBackend from 'i18nextXHRBackend'; +import I18nDetector from 'i18nextBrowserLanguageDetector'; -const detector = new I18nDetector() -const detect = detector.detect.bind(detector) +const detector = new I18nDetector(); +const detect = detector.detect.bind(detector); detector.detect = (detectionOrder) => { - const result = detect(detectionOrder) - return result.replace('-', '_') -} + const result = detect(detectionOrder); + return result.replace('-', '_'); +}; i18n .use(i18nBackend) @@ -34,6 +34,6 @@ i18n backend: { loadPath: 'assets/locales/{{lng}}/{{ns}}.json' } - }) + }); -export default i18n +export default i18n; -- cgit v1.2.3