use / as development context path and use ui-bundler instead of react-scripts

This commit is contained in:
Sebastian Sdorra
2018-08-24 08:35:50 +02:00
parent ee8efe9cf5
commit 8224327ed3
22 changed files with 2708 additions and 3550 deletions

View File

@@ -3,7 +3,8 @@ import Backend from "i18next-fetch-backend";
import LanguageDetector from "i18next-browser-languagedetector";
import { reactI18nextModule } from "react-i18next";
const loadPath = process.env.PUBLIC_URL + "/locales/{{lng}}/{{ns}}.json";
const loadPath =
(process.env.PUBLIC_URL || "") + "/locales/{{lng}}/{{ns}}.json";
// TODO load locales for moment