Skip to content

Commit d110429

Browse files
committed
Fix file path resolution in translate function and update package manager version in package.json
1 parent 7a835c5 commit d110429

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

i18n/controllers/recurTranslate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function translate(language: string, filePath: string): Promise<void> {
2929
try {
3030
// Pipe the XML file into the parser.
3131
const input_dir = fileURLToPath(
32-
import.meta.resolve("../../xml" + filePath)
32+
import.meta.resolve("../../xml/en" + filePath)
3333
);
3434

3535
const translated: string = await recursivelyTranslate(language, input_dir);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@
6464
"hooks": {
6565
"pre-push": "yarn lint"
6666
}
67-
}
67+
},
68+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
6869
}

0 commit comments

Comments
 (0)