mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
logs
This commit is contained in:
1 parent
03b8b89a17
commit
55deb30607
1 file changed
+6
@@ -77,17 +77,23 @@ while (true) {
|
|||||||
data.dynamicContentLocalizationsDir
|
data.dynamicContentLocalizationsDir
|
||||||
}/en.yaml`,
|
}/en.yaml`,
|
||||||
);
|
);
|
||||||
|
console.log('fetched')
|
||||||
const newStrings = parseYaml(await localizationsResponse.text());
|
const newStrings = parseYaml(await localizationsResponse.text());
|
||||||
|
console.log('got new strings')
|
||||||
const oldStrings =
|
const oldStrings =
|
||||||
await vfs.yaml<Record<string, string>>(`Data/Strings/en.yaml`);
|
await vfs.yaml<Record<string, string>>(`Data/Strings/en.yaml`);
|
||||||
|
console.log('got old strings')
|
||||||
const patchedStrings = { ...oldStrings, ...newStrings };
|
const patchedStrings = { ...oldStrings, ...newStrings };
|
||||||
const patchedContent = stringifyYaml(patchedStrings);
|
const patchedContent = stringifyYaml(patchedStrings);
|
||||||
|
console.log('stringified')
|
||||||
|
|
||||||
await mkdir(`${PATCHES_ROOT}/Data/Strings`, { recursive: true });
|
await mkdir(`${PATCHES_ROOT}/Data/Strings`, { recursive: true });
|
||||||
|
console.log('mkdir')
|
||||||
await writeFile(
|
await writeFile(
|
||||||
`${PATCHES_ROOT}/Data/Strings/en.yaml`,
|
`${PATCHES_ROOT}/Data/Strings/en.yaml`,
|
||||||
new Uint8Array((Buffer.from(patchedContent))),
|
new Uint8Array((Buffer.from(patchedContent))),
|
||||||
);
|
);
|
||||||
|
console.log('file')
|
||||||
}
|
}
|
||||||
|
|
||||||
patchIndex++;
|
patchIndex++;
|
||||||
|
|||||||
Reference in new issue
Block a user