This commit is contained in:
tresabhi committed 2026-06-22 20:07:55 -05:00
1 parent 1df2e818be
commit 56933ddfac
2 files changed
+3

No files matched your search

+2
View File
@@ -74,8 +74,10 @@ while (true) {
}/en.yaml`, }/en.yaml`,
); );
const newStrings = parseYaml(await localizationsResponse.text()); const newStrings = parseYaml(await localizationsResponse.text());
console.log("new scripts computed");
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("old strings loaded");
const patchedStrings = { ...oldStrings, ...newStrings }; const patchedStrings = { ...oldStrings, ...newStrings };
const patchedContent = stringifyYaml(patchedStrings); const patchedContent = stringifyYaml(patchedStrings);
@@ -55,6 +55,7 @@ export abstract class AbstractVFS {
async yaml<Type>(path: string) { async yaml<Type>(path: string) {
const file = await this.text(path); const file = await this.text(path);
console.log(file);
return parseYaml(file) as Type; return parseYaml(file) as Type;
} }