You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mihaela Dumitru a6d333c07a
fix(recordings) improve label to clearly reflect current status (#15570)
4 月之前
..
languages.json lang: add indonesian translation (#14836) 1 年之前
main-af.json fix(lang) refactor user media permission copy 7 月之前
main-ar.json fix(lang) refactor user media permission copy 7 月之前
main-be.json fix(lang) refactor user media permission copy 7 月之前
main-bg.json fix(lang) refactor user media permission copy 7 月之前
main-ca.json fix(lang) refactor user media permission copy 7 月之前
main-cs.json fix(lang) update Czech translation 6 月之前
main-da.json fix(lang) refactor user media permission copy 7 月之前
main-de.json fix(lang) update German translation 6 月之前
main-dsb.json fix(lang) refactor user media permission copy 7 月之前
main-el.json fix(lang) updated el translation 6 月之前
main-eo.json fix(lang) refactor user media permission copy 7 月之前
main-es.json fix(lang) refactor user media permission copy 7 月之前
main-esUS.json fix(lang) refactor user media permission copy 7 月之前
main-et.json fix(lang) refactor user media permission copy 7 月之前
main-eu.json fix(lang) refactor user media permission copy 7 月之前
main-fa.json fix(lang) refactor user media permission copy 7 月之前
main-fi.json fix(lang) refactor user media permission copy 7 月之前
main-fr.json lang: Update missing french labels (#15422) 5 月之前
main-frCA.json fix(lang) refactor user media permission copy 7 月之前
main-gl.json fix(lang) refactor user media permission copy 7 月之前
main-he.json fix(lang) refactor user media permission copy 7 月之前
main-hi.json fix(lang) refactor user media permission copy 7 月之前
main-hr.json fix(lang) refactor user media permission copy 7 月之前
main-hsb.json fix(lang) refactor user media permission copy 7 月之前
main-hu.json fix(lang) refactor user media permission copy 7 月之前
main-hy.json fix(lang) refactor user media permission copy 7 月之前
main-id.json fix(lang) refactor user media permission copy 7 月之前
main-is.json fix(lang) refactor user media permission copy 7 月之前
main-it.json fix(lang) refactor user media permission copy 7 月之前
main-ja.json fix(lang) refactor user media permission copy 7 月之前
main-kab.json fix(lang) refactor user media permission copy 7 月之前
main-ko.json lang: Adds missing Korean translations 6 月之前
main-lt.json fix(lang) refactor user media permission copy 7 月之前
main-lv.json fix(lang): Update Latvian language translation 5 月之前
main-ml.json fix(lang) refactor user media permission copy 7 月之前
main-mn.json fix(lang) refactor user media permission copy 7 月之前
main-mr.json fix(lang) refactor user media permission copy 7 月之前
main-nl.json fix(lang) refactor user media permission copy 7 月之前
main-oc.json fix(lang) update Occitan locale (#15389) 6 月之前
main-pl.json fix(lang) refactor user media permission copy 7 月之前
main-pt.json fix(lang) refactor user media permission copy 7 月之前
main-ptBR.json fix(lang) refactor user media permission copy 7 月之前
main-ro.json fix(lang) refactor user media permission copy 7 月之前
main-ru.json fix(lang) refactor user media permission copy 7 月之前
main-sc.json fix(lang) refactor user media permission copy 7 月之前
main-sk.json fix(lang) refactor user media permission copy 7 月之前
main-sl.json fix(lang) refactor user media permission copy 7 月之前
main-sq.json lang: Update for sq translation (#15322) 6 月之前
main-sr.json fix(lang) refactor user media permission copy 7 月之前
main-sv.json fix(lang) update Swedish translation 4 月之前
main-te.json fix(lang) refactor user media permission copy 7 月之前
main-tr.json fix(lang) refactor user media permission copy 7 月之前
main-uk.json fix(lang) refactor user media permission copy 7 月之前
main-vi.json fix(lang) refactor user media permission copy 7 月之前
main-zhCN.json lang: Update main-zhCN.json (#15426) 5 月之前
main-zhTW.json fix(lang) refactor user media permission copy 7 月之前
main.json fix(recordings) improve label to clearly reflect current status (#15570) 4 月之前
readme.md fix(docs) set proper language for codeblocks in lang/readme.md 2 年之前
translation-languages.json feat(lang) add upper sorbian to transcription languages 1 年之前
update-translation.js fix(lang): Add newline at the end of generated lang file 7 月之前

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.