calvinckho / capacitor-jitsi-meet

This plugin is used to make video calls using Jitsi video platform (https://meet.jit.si) on iOS and Android using Ionic Capacitor.
84 stars 40 forks source link

Language Option #93

Closed gasci closed 8 months ago

gasci commented 8 months ago

Thank you for this great plugin.

Is there an option to adjust the interface language?

I used the lang parameter but it doesn't work unfortunately.

calvinckho commented 8 months ago

@gasci Can you try in configOverride, use the property defaultLanguage instead of lang?

Referencing config.js line 360 // Default language for the user interface. // defaultLanguage: 'en',

gasci commented 8 months ago

Thank you for quick response calvinckho

 const result = await Jitsi.joinConference({
        roomName: "meeting-tester",
        url: "https://meet.jit.si",
        displayName: "Full Name",
        subject: "Meeting",
        startWithAudioMuted: false,
        featureFlags: {
          "recording.enabled": false,
          "live-streaming.enabled": false,
          "android.screensharing.enabled": false,
        },
        configOverrides: { defaultLanguage: "tr" },
      });

This configuration didn't work. It is supposed to make the default language Turkish.

It uses the phone system language no matter what.

calvinckho commented 8 months ago

I did some research on the jitsi-meet source code and found the following:

  1. The configOverrides property only works on web browser
  2. on mobile SDKs, the LanguageDetector is hardcoded to detect the mobile device system language, and ignore the config.js overrides.
  3. I have tested this on iOS. If you change the iOS system language, Jitsi would use it as the default language for the UI until the user changes it manually, and the language choice is then cached.

If this is a mission critical feature, I can help you custom-build the mobile SDKs (of your choice of Capacitor version) that has your preferred default language hard-coded into it. DM me to discuss more.

I will close this as it is not a bug related to my plugin. It has to do with the jitsi-meet source code.

gasci commented 8 months ago

Hi, calvinckho.

It is not a mission critical feature actually. Having the system language is enough at this moment. But thank you for your quick responses. It is a good feeling to see that this repo is actively being maintained.