Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language Option #93

Closed
gasci opened this issue Jan 15, 2024 · 4 comments
Closed

Language Option #93

gasci opened this issue Jan 15, 2024 · 4 comments

Comments

@gasci
Copy link
Contributor

gasci commented Jan 15, 2024

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
Copy link
Owner

@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
Copy link
Contributor Author

gasci commented Jan 15, 2024

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
Copy link
Owner

calvinckho commented Jan 16, 2024

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
Copy link
Contributor Author

gasci commented Jan 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants