summaryrefslogtreecommitdiff
path: root/web-ui/src/i18n.js
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-02-08 11:11:38 -0200
committerAnike Arni <aarni@thoughtworks.com>2017-02-08 13:51:37 -0200
commit94fc7554995e4b6fcd95e74d082ed411239ea8e9 (patch)
tree88810c4a44b6c097510b9e29e92b947f07ef9606 /web-ui/src/i18n.js
parent16190197f72ea242ae239dc2741e2887c7008dfa (diff)
[#922] Add semincolon to lint and fix js code
with @tayanefernandes
Diffstat (limited to 'web-ui/src/i18n.js')
-rw-r--r--web-ui/src/i18n.js20
1 files changed, 10 insertions, 10 deletions
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 <http://www.gnu.org/licenses/>.
*/
-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;