We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 462bf46 commit cb6dce0Copy full SHA for cb6dce0
i18n/controllers/path.ts
@@ -1,5 +1,7 @@
1
-export default function PathGenerator(path: string) {
2
- const pathArray: string[] = path.split(".");
+import path from "path";
+
3
+export default function PathGenerator(filePath: string) {
4
+ const pathArray: string[] = filePath.split(".");
5
let gitPath: string = "";
6
const gitPathPrefix: string[] = ["chapter", "section", "subsection"];
7
@@ -15,5 +17,5 @@ export default function PathGenerator(path: string) {
15
17
i++;
16
18
}
19
- return gitPath + ".xml";
20
+ return path.resolve("../xml/en" + gitPath + ".xml");
21
0 commit comments