This commit is contained in:
thororen1234 2026-04-09 18:22:38 -04:00
parent a24af4a741
commit fc46e2cfa3
No known key found for this signature in database
2 changed files with 1 additions and 4 deletions

View file

@ -1,3 +0,0 @@
files:
- source: /i18n/en-US/*.json
translation: /i18n/%locale%/%original_file_name%

View file

@ -153,7 +153,7 @@ async function getTranslation(node: Node): Promise<string | null> {
// load the namespace
const bundle = JSON.parse(
await readFile(`./i18n/en/${namespace}.json`, "utf-8")
await readFile(join(__dirname, "../i18n/en/${namespace}.json"), "utf-8")
);
const dotProp = (key: string, object: any) =>