mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
fix: quotation escape
This commit is contained in:
1 parent
4a79f98f3f
commit
6f8e12657c
4 files changed
+12
-3
No files matched your search
@@ -66,7 +66,16 @@ export abstract class MetadataAccessor {
|
||||
`${remoteStorage.url}/${relative_path}/${namespace}/${locale}.yaml`,
|
||||
)
|
||||
.then((response) => response.text())
|
||||
.then((text) => load(text) as Record<string, string>),
|
||||
.then((text) => {
|
||||
const strings: Record<string, string> = {};
|
||||
const parsed = load(text) as Record<string, string>;
|
||||
|
||||
for (const key in parsed) {
|
||||
strings[key] = parsed[key].replaceAll('\\"', '"');
|
||||
}
|
||||
|
||||
return strings;
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user