This commit is contained in:
TrèsAbhi authored and GitHub committed 2026-06-23 10:20:22 -05:00
1 parent 03b8b89a17
commit 55deb30607
1 file changed
+6
+6
View File
@@ -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++;