jiti-meet/lang
bogdandarie be1752c162
Feat (chat) add new message badge (#11987)
Change scroll to bottom when receive a new message with:
- scroll to bottom if scroll was at the bottom before getting a new message
- keep the scroll in his original position when the scroll position was not at the bottom
- scroll to bottom when open first time the chat
2022-08-26 09:21:41 +03:00
..
languages-af.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-ar.json lang: sort json keys 2022-01-18 20:14:55 +01: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 lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-cs.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-da.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-de.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-el.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-enGB.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-eo.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -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 lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-fi.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -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-fy.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-gl.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-he.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-hi.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-hr.json fix(lang) update Croatian translation 2022-07-20 14:27:29 +02: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 lang: add Ukrainian to more languages 2022-08-18 13:20:02 -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 lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-ja.json fix(lang) update Japanese translation 2022-01-27 09:23:59 +01:00
languages-ka.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-kab.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-km.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-ko.json lang: sort json keys 2022-01-18 20:14:55 +01: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 lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-nb.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-nl.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-oc.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-pl.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-pt.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-ptBR.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-ro.json lang: sort json keys 2022-01-18 20:14:55 +01: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 lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-sq.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-sr.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-sv.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-te.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-tr.json lang: add Ukrainian to more languages 2022-08-18 13:20:02 -05:00
languages-uk.json lang: update Ukrainian translation 2022-08-17 15:46:12 -05:00
languages-vi.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-zhCN.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages-zhTW.json lang: sort json keys 2022-01-18 20:14:55 +01:00
languages.json lang: add upper sorbian translation (#11610) 2022-07-11 14:56:25 +03:00
main-af.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-ar.json fix(lang) update Arabic translation 2022-08-02 10:49:17 +02:00
main-be.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-bg.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-ca.json fix(lang) update Catalan translation 2022-05-30 08:55:34 +02:00
main-cs.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-da.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-de.json fix(lang) update German translation 2022-07-25 09:29:10 +02:00
main-el.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-enGB.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-eo.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-es.json fix(lang) update Spanish translation 2022-05-03 10:33:04 +02:00
main-esUS.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-et.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-eu.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-fa.json Add missing key to Persian lang file 2022-03-29 13:05:58 -05:00
main-fi.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-fr.json fix(lang): update french translation 2022-04-01 16:27:03 -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 fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-hi.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-hr.json fix(lang) update Croatian translation 2022-07-25 10:26:47 +02:00
main-hsb.json lang: add upper sorbian translation (#11610) 2022-07-11 14:56:25 +03:00
main-hu.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-hy.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-id.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-is.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-it.json Update main-it.json 2022-06-09 09:22:44 -05:00
main-ja.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-kab.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-ko.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-lt.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-lv.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-ml.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-mn.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-mr.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-nb.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-nl.json Update main-nl.json 2022-08-23 13:13:27 -05:00
main-oc.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-pl.json lang: Update for Polish (#12053) 2022-08-23 09:54:50 -05:00
main-pt.json Update Portuguese translation 2022-08-07 12:07:39 +02:00
main-ptBR.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-ro.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-ru.json fix(lang) update Russian translation 2022-07-11 16:01:05 +02:00
main-sc.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-sk.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-sl.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-sq.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-sr.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-sv.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-te.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-tr.json fix(lang) update Turkish translation 2022-04-19 17:33:24 -05:00
main-uk.json lang: update Ukrainian translation 2022-08-17 15:46:12 -05:00
main-vi.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-zhCN.json fix(WaitForOwnerDialog) simplify code 2022-03-02 09:59:55 -06:00
main-zhTW.json fix(lang) update Traditional Chinese translation 2022-04-25 14:18:13 +02:00
main.json Feat (chat) add new message badge (#11987) 2022-08-26 09:21:41 +03: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.