From 382fc62f5a7b5f32104674db6f3e33732cd7bb1b Mon Sep 17 00:00:00 2001 From: xnacly Date: Mon, 30 Aug 2021 13:44:52 +0200 Subject: [PATCH] fixed translation path to display correct error msg --- api/src/middlewares/Translation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/middlewares/Translation.ts b/api/src/middlewares/Translation.ts index edc14707..baabf221 100644 --- a/api/src/middlewares/Translation.ts +++ b/api/src/middlewares/Translation.ts @@ -19,7 +19,7 @@ export async function initTranslation(router: Router) { fallbackLng: "en", ns, backend: { - loadPath: __dirname + "/../locales/{{lng}}/{{ns}}.json" + loadPath: __dirname + "/../../locales/{{lng}}/{{ns}}.json" }, load: "all" });