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)
преди 8 месеца
..
languages.json lang: add indonesian translation (#14836) преди 1 година
main-af.json fix(lang) refactor user media permission copy преди 10 месеца
main-ar.json fix(lang) refactor user media permission copy преди 10 месеца
main-be.json fix(lang) refactor user media permission copy преди 10 месеца
main-bg.json fix(lang) refactor user media permission copy преди 10 месеца
main-ca.json fix(lang) refactor user media permission copy преди 10 месеца
main-cs.json fix(lang) update Czech translation преди 9 месеца
main-da.json fix(lang) refactor user media permission copy преди 10 месеца
main-de.json fix(lang) update German translation преди 10 месеца
main-dsb.json fix(lang) refactor user media permission copy преди 10 месеца
main-el.json fix(lang) updated el translation преди 10 месеца
main-eo.json fix(lang) refactor user media permission copy преди 10 месеца
main-es.json fix(lang) refactor user media permission copy преди 10 месеца
main-esUS.json fix(lang) refactor user media permission copy преди 10 месеца
main-et.json fix(lang) refactor user media permission copy преди 10 месеца
main-eu.json fix(lang) refactor user media permission copy преди 10 месеца
main-fa.json fix(lang) refactor user media permission copy преди 10 месеца
main-fi.json fix(lang) refactor user media permission copy преди 10 месеца
main-fr.json lang: Update missing french labels (#15422) преди 9 месеца
main-frCA.json fix(lang) refactor user media permission copy преди 10 месеца
main-gl.json fix(lang) refactor user media permission copy преди 10 месеца
main-he.json fix(lang) refactor user media permission copy преди 10 месеца
main-hi.json fix(lang) refactor user media permission copy преди 10 месеца
main-hr.json fix(lang) refactor user media permission copy преди 10 месеца
main-hsb.json fix(lang) refactor user media permission copy преди 10 месеца
main-hu.json fix(lang) refactor user media permission copy преди 10 месеца
main-hy.json fix(lang) refactor user media permission copy преди 10 месеца
main-id.json fix(lang) refactor user media permission copy преди 10 месеца
main-is.json fix(lang) refactor user media permission copy преди 10 месеца
main-it.json fix(lang) refactor user media permission copy преди 10 месеца
main-ja.json fix(lang) refactor user media permission copy преди 10 месеца
main-kab.json fix(lang) refactor user media permission copy преди 10 месеца
main-ko.json lang: Adds missing Korean translations преди 10 месеца
main-lt.json fix(lang) refactor user media permission copy преди 10 месеца
main-lv.json fix(lang): Update Latvian language translation преди 9 месеца
main-ml.json fix(lang) refactor user media permission copy преди 10 месеца
main-mn.json fix(lang) refactor user media permission copy преди 10 месеца
main-mr.json fix(lang) refactor user media permission copy преди 10 месеца
main-nl.json fix(lang) refactor user media permission copy преди 10 месеца
main-oc.json fix(lang) update Occitan locale (#15389) преди 10 месеца
main-pl.json fix(lang) refactor user media permission copy преди 10 месеца
main-pt.json fix(lang) refactor user media permission copy преди 10 месеца
main-ptBR.json fix(lang) refactor user media permission copy преди 10 месеца
main-ro.json fix(lang) refactor user media permission copy преди 10 месеца
main-ru.json fix(lang) refactor user media permission copy преди 10 месеца
main-sc.json fix(lang) refactor user media permission copy преди 10 месеца
main-sk.json fix(lang) refactor user media permission copy преди 10 месеца
main-sl.json fix(lang) refactor user media permission copy преди 10 месеца
main-sq.json lang: Update for sq translation (#15322) преди 10 месеца
main-sr.json fix(lang) refactor user media permission copy преди 10 месеца
main-sv.json fix(lang) update Swedish translation преди 8 месеца
main-te.json fix(lang) refactor user media permission copy преди 10 месеца
main-tr.json fix(lang) refactor user media permission copy преди 10 месеца
main-uk.json fix(lang) refactor user media permission copy преди 10 месеца
main-vi.json fix(lang) refactor user media permission copy преди 10 месеца
main-zhCN.json lang: Update main-zhCN.json (#15426) преди 9 месеца
main-zhTW.json fix(lang) refactor user media permission copy преди 10 месеца
main.json fix(recordings) improve label to clearly reflect current status (#15570) преди 8 месеца
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 преди 11 месеца

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.