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 | 3db1abdb50a5528893c1325d907c69d5534a5d31 (patch) | |
tree | 9e9cb0eed5ee026d045777b3283010d19d333e53 /api/src/middlewares/Translation.ts | |
parent | Merge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm (diff) | |
download | server-3db1abdb50a5528893c1325d907c69d5534a5d31.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" }); |