jiti-meet/lang
TTG 90b17046f6
fix(lang) remove non-existent languages (#12258)
* Remove Thai from all language.json

* Remove Azerbaijani from all language.json
2022-09-27 14:50:37 -05:00
..
languages-af.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-ar.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-be.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-bg.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-ca.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-cs.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-da.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-de.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-el.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-enGB.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-eo.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-es.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-esUS.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-et.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-eu.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-fa.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-fi.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-fr.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-frCA.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-gl.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-he.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-hi.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-hr.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-hsb.json lang: add upper sorbian translation (#11610) 2022-07-11 14:56:25 +03:00
languages-hu.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-hy.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-id.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-is.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-it.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-ja.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-kab.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-ko.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-lt.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-lv.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-mn.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-mr.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-nb.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-nl.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-oc.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-pl.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-pt.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-ptBR.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-ro.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-ru.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-sc.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-sk.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-sl.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-sq.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-sr.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-sv.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-te.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-tr.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-uk.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-vi.json fix(lang) remove non-existent languages (#12258) 2022-09-27 14:50:37 -05:00
languages-zhCN.json lang: Update Chinese translations (#12104) 2022-09-27 12:44:34 -05:00
languages-zhTW.json lang: Update Chinese translations (#12104) 2022-09-27 12:44:34 -05:00
languages.json lang: Update Chinese translations (#12104) 2022-09-27 12:44:34 -05:00
main-af.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-ar.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-be.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-bg.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-ca.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-cs.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-da.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-de.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-el.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-enGB.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-eo.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-es.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-esUS.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-et.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-eu.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-fa.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-fi.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-fr.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-frCA.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-gl.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-he.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-hi.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-hr.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-hsb.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-hu.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-hy.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-id.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-is.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-it.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-ja.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-kab.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-ko.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-lt.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-lv.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-ml.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-mn.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-mr.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-nb.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-nl.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-oc.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-pl.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-pt.json lang: Update Portuguese translation (#12241) 2022-09-26 11:26:49 -05:00
main-ptBR.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-ro.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-ru.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-sc.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-sk.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-sl.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-sq.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-sr.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-sv.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-te.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-tr.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-uk.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
main-vi.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-zhCN.json lang: Update Chinese translations (#12104) 2022-09-27 12:44:34 -05:00
main-zhTW.json lang: Update Chinese translations (#12104) 2022-09-27 12:44:34 -05:00
main.json ref(conn-indicator): remove E2E RTT (#12139) 2022-09-12 15:57:15 -05:00
readme.md feat(lang) add helper script for manual translations 2021-09-29 13:08: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.