mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
debug
This commit is contained in:
1 parent
1df2e818be
commit
56933ddfac
2 files changed
+3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user