apply prettier, removed flow related config and added tsconfig

This commit is contained in:
Sebastian Sdorra
2019-10-20 18:02:52 +02:00
parent 0e017dcadd
commit 490418d06e
231 changed files with 5771 additions and 30386 deletions

View File

@@ -1,10 +1,10 @@
import i18n from 'i18next';
import Backend from 'i18next-fetch-backend';
import LanguageDetector from 'i18next-browser-languagedetector';
import { reactI18nextModule } from 'react-i18next';
import { urls } from '@scm-manager/ui-components';
import i18n from "i18next";
import Backend from "i18next-fetch-backend";
import LanguageDetector from "i18next-browser-languagedetector";
import { reactI18nextModule } from "react-i18next";
import { urls } from "@scm-manager/ui-components";
const loadPath = urls.withContextPath('/locales/{{lng}}/{{ns}}.json');
const loadPath = urls.withContextPath("/locales/{{lng}}/{{ns}}.json");
// TODO load locales for moment
@@ -13,31 +13,31 @@ i18n
.use(LanguageDetector)
.use(reactI18nextModule)
.init({
fallbackLng: 'en',
fallbackLng: "en",
// try to load only "en" and not "en_US"
load: 'languageOnly',
load: "languageOnly",
// have a common namespace used around the full app
ns: ['commons'],
defaultNS: 'commons',
ns: ["commons"],
defaultNS: "commons",
debug: false,
interpolation: {
escapeValue: false, // not needed for react!!
escapeValue: false // not needed for react!!
},
react: {
wait: true,
wait: true
},
backend: {
loadPath: loadPath,
init: {
credentials: 'same-origin',
},
},
credentials: "same-origin"
}
}
});
export default i18n;