Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Mihaela Dumitru a6d333c07a
fix(recordings) improve label to clearly reflect current status (#15570)
4 meses atrás
..
languages.json lang: add indonesian translation (#14836) 1 ano atrás
main-af.json fix(lang) refactor user media permission copy 7 meses atrás
main-ar.json fix(lang) refactor user media permission copy 7 meses atrás
main-be.json fix(lang) refactor user media permission copy 7 meses atrás
main-bg.json fix(lang) refactor user media permission copy 7 meses atrás
main-ca.json fix(lang) refactor user media permission copy 7 meses atrás
main-cs.json fix(lang) update Czech translation 6 meses atrás
main-da.json fix(lang) refactor user media permission copy 7 meses atrás
main-de.json fix(lang) update German translation 6 meses atrás
main-dsb.json fix(lang) refactor user media permission copy 7 meses atrás
main-el.json fix(lang) updated el translation 6 meses atrás
main-eo.json fix(lang) refactor user media permission copy 7 meses atrás
main-es.json fix(lang) refactor user media permission copy 7 meses atrás
main-esUS.json fix(lang) refactor user media permission copy 7 meses atrás
main-et.json fix(lang) refactor user media permission copy 7 meses atrás
main-eu.json fix(lang) refactor user media permission copy 7 meses atrás
main-fa.json fix(lang) refactor user media permission copy 7 meses atrás
main-fi.json fix(lang) refactor user media permission copy 7 meses atrás
main-fr.json lang: Update missing french labels (#15422) 5 meses atrás
main-frCA.json fix(lang) refactor user media permission copy 7 meses atrás
main-gl.json fix(lang) refactor user media permission copy 7 meses atrás
main-he.json fix(lang) refactor user media permission copy 7 meses atrás
main-hi.json fix(lang) refactor user media permission copy 7 meses atrás
main-hr.json fix(lang) refactor user media permission copy 7 meses atrás
main-hsb.json fix(lang) refactor user media permission copy 7 meses atrás
main-hu.json fix(lang) refactor user media permission copy 7 meses atrás
main-hy.json fix(lang) refactor user media permission copy 7 meses atrás
main-id.json fix(lang) refactor user media permission copy 7 meses atrás
main-is.json fix(lang) refactor user media permission copy 7 meses atrás
main-it.json fix(lang) refactor user media permission copy 7 meses atrás
main-ja.json fix(lang) refactor user media permission copy 7 meses atrás
main-kab.json fix(lang) refactor user media permission copy 7 meses atrás
main-ko.json lang: Adds missing Korean translations 6 meses atrás
main-lt.json fix(lang) refactor user media permission copy 7 meses atrás
main-lv.json fix(lang): Update Latvian language translation 5 meses atrás
main-ml.json fix(lang) refactor user media permission copy 7 meses atrás
main-mn.json fix(lang) refactor user media permission copy 7 meses atrás
main-mr.json fix(lang) refactor user media permission copy 7 meses atrás
main-nl.json fix(lang) refactor user media permission copy 7 meses atrás
main-oc.json fix(lang) update Occitan locale (#15389) 6 meses atrás
main-pl.json fix(lang) refactor user media permission copy 7 meses atrás
main-pt.json fix(lang) refactor user media permission copy 7 meses atrás
main-ptBR.json fix(lang) refactor user media permission copy 7 meses atrás
main-ro.json fix(lang) refactor user media permission copy 7 meses atrás
main-ru.json fix(lang) refactor user media permission copy 7 meses atrás
main-sc.json fix(lang) refactor user media permission copy 7 meses atrás
main-sk.json fix(lang) refactor user media permission copy 7 meses atrás
main-sl.json fix(lang) refactor user media permission copy 7 meses atrás
main-sq.json lang: Update for sq translation (#15322) 6 meses atrás
main-sr.json fix(lang) refactor user media permission copy 7 meses atrás
main-sv.json fix(lang) update Swedish translation 4 meses atrás
main-te.json fix(lang) refactor user media permission copy 7 meses atrás
main-tr.json fix(lang) refactor user media permission copy 7 meses atrás
main-uk.json fix(lang) refactor user media permission copy 7 meses atrás
main-vi.json fix(lang) refactor user media permission copy 7 meses atrás
main-zhCN.json lang: Update main-zhCN.json (#15426) 5 meses atrás
main-zhTW.json fix(lang) refactor user media permission copy 7 meses atrás
main.json fix(recordings) improve label to clearly reflect current status (#15570) 4 meses atrás
readme.md fix(docs) set proper language for codeblocks in lang/readme.md 2 anos atrás
translation-languages.json feat(lang) add upper sorbian to transcription languages 1 ano atrás
update-translation.js fix(lang): Add newline at the end of generated lang file 7 meses atrás

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.