Skip to content

Commit 7515695

Browse files
committed
Pass current language into Jitsi
Jitsi itself now uses the current language of the user. However, this does not yet apply to the welcome page of the Jitsi widget that says "Join conference", which is only hard-coded to english for now. Signed-off-by: Oliver Sand <[email protected]>
1 parent 77f8e4d commit 7515695

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vector/jitsi/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ let roomName: string;
5757
let startAudioOnly: boolean;
5858
let isVideoChannel: boolean;
5959
let supportsScreensharing: boolean;
60+
let language: string;
6061

6162
let widgetApi: WidgetApi;
6263
let meetApi: any; // JitsiMeetExternalAPI
@@ -86,6 +87,7 @@ const setupCompleted = (async (): Promise<string | void> => {
8687
const parentUrl = qsParam("parentUrl", true);
8788
const widgetId = qsParam("widgetId", true);
8889
const theme = qsParam("theme", true);
90+
language = qsParam("language", true) ?? "en";
8991

9092
if (theme) {
9193
document.body.classList.add(`theme-${theme.replace(" ", "_")}`);
@@ -371,6 +373,7 @@ function joinConference(audioInput?: string | null, videoInput?: string | null):
371373
apiLogLevels: ["warn", "error"],
372374
} as any,
373375
jwt: jwt,
376+
lang: language,
374377
};
375378

376379
// Video channel widgets need some more tailored config options

0 commit comments

Comments
 (0)