File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export function loadMonacoEnv(store: Store) {
161
161
worker . postMessage ( {
162
162
event : 'init' ,
163
163
tsVersion : store . state . typescriptVersion ,
164
- tsLocale : store . state . typescriptLocale ,
164
+ tsLocale : store . state . typescriptLocale || store . state . locale ,
165
165
} satisfies WorkerMessage )
166
166
} )
167
167
await init
Original file line number Diff line number Diff line change @@ -85,7 +85,9 @@ export interface StoreState {
85
85
vueRuntimeURL : string
86
86
vueServerRendererURL : string
87
87
typescriptVersion : string
88
- typescriptLocale : string | undefined
88
+ /** @deprecated use `locale` instead */
89
+ typescriptLocale ?: string | undefined
90
+ locale ?: string | undefined
89
91
// used to force reset the sandbox
90
92
resetFlip : boolean
91
93
}
@@ -191,6 +193,7 @@ export class ReplStore implements Store {
191
193
this . state . files [ tsconfigFile ] ?. code ,
192
194
this . state . typescriptVersion ,
193
195
this . state . typescriptLocale ,
196
+ this . state . locale ,
194
197
] ,
195
198
( ) => this . reloadLanguageTools ?.( )
196
199
)
You can’t perform that action at this time.
0 commit comments