Merge branch 'release/rc-v1.2.0' into bugifx/wizard

This commit is contained in:
Viktor Fomin 2023-02-03 14:53:23 +03:00
commit fe1cbda2f2

View File

@ -12,6 +12,7 @@ import i18nextMiddleware from "i18next-express-middleware";
import i18next from "./i18n";
import cookieParser from "cookie-parser";
import { LANGUAGE, COOKIE_EXPIRATION_YEAR } from "@docspace/common/constants";
import { getLanguage } from "@docspace/common/utils";
import { initSSR } from "@docspace/common/api/client";
import dns from "dns";
@ -66,6 +67,8 @@ app.get("*", async (req: ILoginRequest, res: Response, next) => {
});
}
currentLanguage = getLanguage(currentLanguage);
if (i18n) await i18n.changeLanguage(currentLanguage);
let initialI18nStore = {};