mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
what
This commit is contained in:
1 parent
fdbbe2f356
commit
f6dfc4f176
1 file changed
-4
@@ -66,18 +66,14 @@ while (true) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ("dynamicContentLocalizationsDir" in data) {
|
if ("dynamicContentLocalizationsDir" in data) {
|
||||||
console.log("Found dynamic content localizations; patching...");
|
|
||||||
|
|
||||||
const localizationsResponse = await fetch(
|
const localizationsResponse = await fetch(
|
||||||
`${assertSecret(import.meta.env.WOTB_DLC_CDN)}/dlc/${
|
`${assertSecret(import.meta.env.WOTB_DLC_CDN)}/dlc/${
|
||||||
data.dynamicContentLocalizationsDir
|
data.dynamicContentLocalizationsDir
|
||||||
}/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);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user