1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Revert "Replace i18next http backend by filesystem sync backend"

This reverts commit 60d58e7ac9.
This commit is contained in:
Miguel Angel Mulero Martinez 2020-10-29 13:11:28 +01:00
parent d3addd2d25
commit 39808a5477
5 changed files with 15 additions and 9 deletions

View file

@ -20,10 +20,8 @@ const languageFallback = {
i18n.init = function(cb) {
getStoredUserLocale(function(userLanguage) {
const I18NextFsBackend = require('i18next-fs-backend');
i18next
.use(I18NextFsBackend)
.use(i18nextHttpBackend)
.init({
lng: userLanguage,
getAsync: false,
@ -35,7 +33,6 @@ i18n.init = function(cb) {
loadPath: './locales/{{lng}}/{{ns}}.json',
parse: i18n.parseInputFile,
},
initImmediate: false,
},
function(err) {
if (err !== undefined) {