summary refs log tree commit diff
path: root/api/src/middlewares/Translation.ts
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-08-30 13:44:52 +0200
committerxnacly <matteogropp@protonmail.com>2021-08-30 13:44:52 +0200
commit382fc62f5a7b5f32104674db6f3e33732cd7bb1b (patch)
tree37e5e87f6ee6b1abbcd88fa6ca08a773ce66d0c0 /api/src/middlewares/Translation.ts
parentMerge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm (diff)
downloadserver-382fc62f5a7b5f32104674db6f3e33732cd7bb1b.tar.xz
fixed translation path to display correct error msg
Diffstat (limited to '')
-rw-r--r--api/src/middlewares/Translation.ts2
1 files changed, 1 insertions, 1 deletions
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"
 		});