Spaces:
Building
Building
Update flare-ui/src/app/components/chat/chat.component.ts
Browse files
flare-ui/src/app/components/chat/chat.component.ts
CHANGED
@@ -196,13 +196,14 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
196 |
this.loading = true;
|
197 |
this.error = '';
|
198 |
|
199 |
-
this.api.startChat(this.selectedProject).pipe(
|
200 |
takeUntil(this.destroyed$)
|
201 |
).subscribe({
|
202 |
next: res => {
|
203 |
// Store session ID for realtime component
|
204 |
localStorage.setItem('current_session_id', res.session_id);
|
205 |
localStorage.setItem('current_project', this.selectedProject || '');
|
|
|
206 |
localStorage.setItem('use_tts', this.useTTS.toString());
|
207 |
|
208 |
// Open realtime chat dialog
|
|
|
196 |
this.loading = true;
|
197 |
this.error = '';
|
198 |
|
199 |
+
this.api.startChat(this.selectedProject, this.selectedLocale).pipe(
|
200 |
takeUntil(this.destroyed$)
|
201 |
).subscribe({
|
202 |
next: res => {
|
203 |
// Store session ID for realtime component
|
204 |
localStorage.setItem('current_session_id', res.session_id);
|
205 |
localStorage.setItem('current_project', this.selectedProject || '');
|
206 |
+
localStorage.setItem('current_locale', this.selectedLocale);
|
207 |
localStorage.setItem('use_tts', this.useTTS.toString());
|
208 |
|
209 |
// Open realtime chat dialog
|