ui: upgrade monaco-editor

This commit is contained in:
undefined committed 2023-12-15 00:32:17 +08:00
1 parent 3cc4817bbe
commit d121a7148a
6 files changed
+17 -6

No files matched your search

@@ -18,6 +18,14 @@ export function localize(path, message, ...args) {
return format(CURRENT_LOCALE_DATA[path.key || path] || message, args);
}
export function localize2(data, message, ...args) {
const original = localize(message, args);
return {
value: original,
original,
};
}
export function setLocaleData(data) {
CURRENT_LOCALE_DATA = Object.assign(...Object.values(data));
}