summary refs log tree commit diff
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
commit3db1abdb50a5528893c1325d907c69d5534a5d31 (patch)
tree9e9cb0eed5ee026d045777b3283010d19d333e53
parentMerge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm (diff)
downloadserver-3db1abdb50a5528893c1325d907c69d5534a5d31.tar.xz
fixed translation path to display correct error msg
-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"
 		});