|
@@ -1,15 +1,25 @@
|
1
|
|
-Jitsi Meet Translation
|
2
|
|
-==========================
|
|
1
|
+# Jitsi Meet Translation
|
|
2
|
+
|
3
|
3
|
Jitsi Meet uses [i18next](http://i18next.com) library for translation.
|
4
|
4
|
i18next uses separate json files for each language.
|
5
|
5
|
|
6
|
6
|
|
7
|
|
-Translating Jitsi Meet
|
8
|
|
-======================
|
|
7
|
+## Translating Jitsi Meet
|
|
8
|
+
|
9
|
9
|
The translation of Jitsi Meet is handled editing manually the language files.
|
10
|
10
|
|
11
|
|
-Development
|
12
|
|
-===========
|
|
11
|
+You can use the `update-translation.js` script as follows to help you with that:
|
|
12
|
+
|
|
13
|
+```js
|
|
14
|
+cd lang
|
|
15
|
+node update-translation.js main-es.json
|
|
16
|
+```
|
|
17
|
+
|
|
18
|
+That will cause the `main-es.json` file to be updated with all the missing keys set as empty
|
|
19
|
+strings. All that's missing is for you to fill in the blanks!
|
|
20
|
+
|
|
21
|
+## Development
|
|
22
|
+
|
13
|
23
|
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.
|
14
|
24
|
Than you can use the key to get the translated text for the current language.
|
15
|
25
|
|
|
@@ -43,7 +53,3 @@ You can add translatable text in the HTML:
|
43
|
53
|
For the available values of ``options`` parameter for the above methods of translation module see [i18next documentation](http://i18next.com/pages/doc_features).
|
44
|
54
|
|
45
|
55
|
**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.
|
46
|
|
-
|
47
|
|
-
|
48
|
|
-
|
49
|
|
-
|