diff options
author | xnacly <matteogropp@protonmail.com> | 2021-08-30 13:44:52 +0200 |
---|---|---|
committer | xnacly <matteogropp@protonmail.com> | 2021-08-30 13:44:52 +0200 |
commit | 382fc62f5a7b5f32104674db6f3e33732cd7bb1b (patch) | |
tree | 37e5e87f6ee6b1abbcd88fa6ca08a773ce66d0c0 /api/src/middlewares/Translation.ts | |
parent | Merge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm (diff) | |
download | server-382fc62f5a7b5f32104674db6f3e33732cd7bb1b.tar.xz |
fixed translation path to display correct error msg
Diffstat (limited to '')
-rw-r--r-- | api/src/middlewares/Translation.ts | 2 |
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" }); |