fixes
This commit is contained in:
parent
a24af4a741
commit
fc46e2cfa3
2 changed files with 1 additions and 4 deletions
|
|
@ -1,3 +0,0 @@
|
|||
files:
|
||||
- source: /i18n/en-US/*.json
|
||||
translation: /i18n/%locale%/%original_file_name%
|
||||
|
|
@ -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) =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue