Fix language selector

This commit is contained in:
Matt Rubens
2025-01-21 15:39:59 -05:00
parent 5dcb96739b
commit 8bbb64d27f
4 changed files with 40 additions and 2 deletions

View File

@@ -809,7 +809,8 @@ export class Cline {
})
}
const { browserViewportSize, mode, customPrompts } = (await this.providerRef.deref()?.getState()) ?? {}
const { browserViewportSize, mode, customPrompts, preferredLanguage } =
(await this.providerRef.deref()?.getState()) ?? {}
const { customModes } = (await this.providerRef.deref()?.getState()) ?? {}
const systemPrompt = await (async () => {
const provider = this.providerRef.deref()
@@ -826,6 +827,7 @@ export class Cline {
mode,
customPrompts,
customModes,
preferredLanguage,
)
})()