Skip to content

Commit a87b556

Browse files
committed
feat: update Monaco editor configuration to preserve existing environment settings while setting locale to French
1 parent 947d17c commit a87b556

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/web/src/composables/useDebug.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ export function useDebug() {
5151
}
5252

5353
const monacoOptions = computed<Monaco.editor.IStandaloneEditorConstructionOptions>(() => {
54+
const existingMonacoEnvironment = (window as any).MonacoEnvironment ?? {}
5455
;(window as any).MonacoEnvironment = {
55-
locale: 'fr'
56+
...existingMonacoEnvironment,
57+
locale: 'fr',
5658
}
5759

5860
return {

0 commit comments

Comments
 (0)