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 e8933ae commit 57e85bbCopy full SHA for 57e85bb
bin/update-modules-translations.mjs
@@ -8,6 +8,7 @@ import { resolve } from "node:path";
8
import { glob } from "glob";
9
import { load } from "js-yaml";
10
import { parseArgs } from "node:util";
11
+import { sep as filePathSeparator } from "path";
12
13
const BASE_URL = `https://static.zdassets.com/translations`;
14
@@ -67,7 +68,7 @@ async function getModules() {
67
68
for (const file of files) {
69
const content = await readFile(file);
70
const parsedContent = load(content);
- const moduleName = file.split("/")[2];
71
+ const moduleName = file.split(filePathSeparator)[2];
72
result[moduleName] = parsedContent.packages[0];
73
}
74
0 commit comments