Update utils.ts
This commit is contained in:
parent
fc46e2cfa3
commit
77b0d69262
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ async function getTranslation(node: Node): Promise<string | null> {
|
|||
|
||||
// load the namespace
|
||||
const bundle = JSON.parse(
|
||||
await readFile(join(__dirname, "../i18n/en/${namespace}.json"), "utf-8")
|
||||
await readFile(join(__dirname, `./i18n/en/${namespace}.json`), "utf-8")
|
||||
);
|
||||
|
||||
const dotProp = (key: string, object: any) =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue