From 93509257d84af22314128280831ae894ff5862e5 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 9 Apr 2026 18:30:28 -0400 Subject: [PATCH] Update utils.ts --- scripts/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/utils.ts b/scripts/utils.ts index 47d76e5fb..b38eee06c 100644 --- a/scripts/utils.ts +++ b/scripts/utils.ts @@ -152,8 +152,9 @@ async function getTranslation(node: Node): Promise { const path = splitPath.join("."); // load the namespace + const base = __dirname.endsWith("scripts") ? join(__dirname, "..") : __dirname; const bundle = JSON.parse( - await readFile(join(__dirname, `./i18n/en/${namespace}.json`), "utf-8") + await readFile(join(base, `i18n/en/${namespace}.json`), "utf-8") ); const dotProp = (key: string, object: any) =>