jitsi / jitsi-meet

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
https://jitsi.org/meet
Apache License 2.0
22.84k stars 6.68k forks source link

iframe API: support defining user interface language for every user #15047

Open mikkorantalainen opened 3 weeks ago

mikkorantalainen commented 3 weeks ago

What problem are you trying to solve?

I'm trying to use meet.jit.si in an IFRAME and I have users which would prefer to see the user interface in English or Finnish depending on user. I know the preferred language of the user while generating the iframe element but I cannot set the language for the content inside the iframe that's visible for the given user.

And if possible, I'd like to set the element inside the iframe SRC address (in case I load the address in toplevel window) according to the user language (I would set title according to the language of the UI). I know that I can change to subject of the room with config.subject (I think this used to be config.roomName earlier but I couldn't find information about this change).</p> <h3>What solution would you like to see?</h3> <p>Jitsi should support specifying per iframe language instead of site global language.</p> <h3>Is there an alternative?</h3> <p>I've tried to pass config options lang, defaultLanguage, configOverwrite.lang, configOverwrite.defaultLanguage and URL parameter ?lang=fi but nothing seems to work.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/damencho"><img src="https://avatars.githubusercontent.com/u/3263098?v=4" />damencho</a> commented <strong> 3 weeks ago</strong> </div> <div class="markdown-body"> <p>The options you pass to JitsiMeetExternalAPI can have <code>lang</code> option. <a href="https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe#creating-the-jitsi-meet-api-object">https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe#creating-the-jitsi-meet-api-object</a> Make sure when testing you use incognito window and close the window between tests.</p> <p>Once the language is set in the browser (you have loaded it at least once) you can change it only from the settings menu, changing the parameter you pass, does not work.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>