diff options
Diffstat (limited to 'web-ui/src/i18n.js')
-rw-r--r-- | web-ui/src/i18n.js | 20 |
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; |