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