jiti-meet/lang
Alexey Matveev 0e19bc9cd6 ru-localization minors 2022-11-04 13:46:41 -05:00
..
languages.json feat: Adjust language list to be shown in native language (#12475) 2022-10-29 09:20:50 -05:00
main-af.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-ar.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-be.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-bg.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-ca.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-cs.json lang: Updated Czech Translation (#12388) 2022-11-03 16:01:31 -05:00
main-da.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-de.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-el.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-enGB.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-eo.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-es.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-esUS.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-et.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-eu.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-fa.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-fi.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-fr.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-frCA.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-gl.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-he.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-hi.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-hr.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-hsb.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-hu.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-hy.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-id.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-is.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-it.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-ja.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-kab.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-ko.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-lt.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-lv.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-ml.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-mn.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-mr.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-nb.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-nl.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-oc.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-pl.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-pt.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-ptBR.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-ro.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-ru.json ru-localization minors 2022-11-04 13:46:41 -05:00
main-sc.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-sk.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-sl.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-sq.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-sr.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-sv.json lang: Update Swedish 100% translation (#12511) 2022-11-04 13:45:15 -05:00
main-te.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-tr.json lang: Update Turkish translation (#12348) 2022-11-03 16:01:12 -05:00
main-uk.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-vi.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
main-zhCN.json fix(lang) update Chinese translations (#12344) 2022-11-02 16:41:26 -05:00
main-zhTW.json fix(lang) update Chinese translations (#12344) 2022-11-02 16:41:26 -05:00
main.json fix(lang) update translations 2022-11-03 10:53:25 +01:00
readme.md feat(lang) add helper script for manual translations 2021-09-29 13:08:59 +02:00
translation-languages.json fix(translation) translation button visibility for users, add missing languages 2022-09-29 13:44:59 +02:00
update-translation.js feat(lang) add helper script for manual translations 2021-09-29 13:08:59 +02:00

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.