35ee92869f
- redesign deeplinking mobile page, desktop page and dial in number page - now dial in number page is an entry point in app.bundle. |
||
---|---|---|
.. | ||
languages.json | ||
main-af.json | ||
main-ar.json | ||
main-be.json | ||
main-bg.json | ||
main-ca.json | ||
main-cs.json | ||
main-da.json | ||
main-de.json | ||
main-el.json | ||
main-enGB.json | ||
main-eo.json | ||
main-es.json | ||
main-esUS.json | ||
main-et.json | ||
main-eu.json | ||
main-fa.json | ||
main-fi.json | ||
main-fr.json | ||
main-frCA.json | ||
main-gl.json | ||
main-he.json | ||
main-hi.json | ||
main-hr.json | ||
main-hsb.json | ||
main-hu.json | ||
main-hy.json | ||
main-is.json | ||
main-it.json | ||
main-ja.json | ||
main-kab.json | ||
main-ko.json | ||
main-lt.json | ||
main-lv.json | ||
main-ml.json | ||
main-mn.json | ||
main-mr.json | ||
main-nl.json | ||
main-oc.json | ||
main-pl.json | ||
main-pt.json | ||
main-ptBR.json | ||
main-ro.json | ||
main-ru.json | ||
main-sc.json | ||
main-sk.json | ||
main-sl.json | ||
main-sq.json | ||
main-sr.json | ||
main-sv.json | ||
main-te.json | ||
main-tr.json | ||
main-uk.json | ||
main-vi.json | ||
main-zhCN.json | ||
main-zhTW.json | ||
main.json | ||
readme.md | ||
translation-languages.json | ||
update-translation.js |
readme.md
Jitsi Meet Translation
Jitsi Meet uses i18next library for translation. i18next uses separate json files for each language.
Translating Jitsi Meet
The translation of Jitsi Meet is handled editing manually the language files.
You can use the update-translation.js
script as follows to help you with that:
cd lang
node update-translation.js main-es.json
That will cause the main-es.json
file to be updated with all the missing keys set as empty
strings. All that's missing is for you to fill in the blanks!
Development
If you want to add new functionality for Jitsi Meet and you have texts that need to be translated you must add key and value in main.json file in English for each translatable text. Than you can use the key to get the translated text for the current language.
You can add translatable text in the HTML:
- via attribute on HTML element - add data-i18n attribute with value the key of the translatable text.
<span data-i18n="dialog.OK">OK</span>
You can also use APP.translation.generateTranslationHTML(key, options) to get this HTML code as Javascript string.
APP.translation.generateTranslationHTML("dialog.OK") // returns <span data-i18n="dialog.OK">OK</span>
The value in the options parameter will be added in data-i18n-options attribute of the element.
Note: If you dynamically add HTML elements don't forget to call APP.translation.translateElement(jquery_selector) to translate the text initially.
APP.translation.translateString("dialog.OK") // returns the value for the key of the current language file. "OK" for example.
For the available values of options
parameter for the above methods of translation module see i18next documentation.
Note: It is useful to add attributes in the HTML for persistent HTML elements because when the language is changed the text will be automatically translated.