From 76be13552f17f2c58283e8c2ec94516debc6073d Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 5 Apr 2018 12:51:29 -0700 Subject: [PATCH] js/i18n.js -> js/modules/i18n.js --- .eslintignore | 1 - Gruntfile.js | 1 - js/{ => modules}/i18n.js | 0 js/react/util/index.ts | 2 +- preload.js | 2 +- 5 files changed, 2 insertions(+), 4 deletions(-) rename js/{ => modules}/i18n.js (100%) diff --git a/.eslintignore b/.eslintignore index 77309ee87..c810ffb50 100644 --- a/.eslintignore +++ b/.eslintignore @@ -22,7 +22,6 @@ js/react/**/*.js !js/backup.js !js/database.js !js/logging.js -!js/i18n.js !js/models/conversations.js !js/views/attachment_view.js !js/views/conversation_search_view.js diff --git a/Gruntfile.js b/Gruntfile.js index 07040945a..c5f360d08 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -101,7 +101,6 @@ module.exports = function(grunt) { '!js/backup.js', '!js/components.js', '!js/database.js', - '!js/i18n.js', '!js/jquery.js', '!js/libsignal-protocol-worker.js', '!js/libtextsecure.js', diff --git a/js/i18n.js b/js/modules/i18n.js similarity index 100% rename from js/i18n.js rename to js/modules/i18n.js diff --git a/js/react/util/index.ts b/js/react/util/index.ts index e8a8ba550..c1a36aa29 100644 --- a/js/react/util/index.ts +++ b/js/react/util/index.ts @@ -51,7 +51,7 @@ const locale = urlOptions.locale || 'en'; import localeMessages from '../../../_locales/en/messages.json'; // @ts-ignore -import { setup } from '../../i18n'; +import { setup } from '../../modules/i18n'; const i18n = setup(locale, localeMessages); diff --git a/preload.js b/preload.js index 067a870ed..60e59ec3a 100644 --- a/preload.js +++ b/preload.js @@ -113,7 +113,7 @@ window.React = require('react'); window.ReactDOM = require('react-dom'); window.moment = require('moment'); -const { setup } = require('./js/i18n'); +const { setup } = require('./js/modules/i18n'); const { locale, localeMessages } = window.config; window.i18n = setup(locale, localeMessages);