From 847d1dd4b72a67f5df78f08ce7a454c0ec594564 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Mon, 3 Apr 2023 21:45:53 +0800 Subject: [PATCH] fix(docs) set proper language for codeblocks in lang/readme.md --- lang/readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lang/readme.md b/lang/readme.md index 12aec9eed9..78ccedb5b6 100644 --- a/lang/readme.md +++ b/lang/readme.md @@ -10,7 +10,7 @@ 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: -```js +```sh cd lang node update-translation.js main-es.json ``` @@ -29,7 +29,7 @@ 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. - ``` + ```html OK ``` @@ -37,7 +37,7 @@ You can add translatable text in the HTML: You can also use APP.translation.generateTranslationHTML(key, options) to get this HTML code as Javascript string. - ``` + ```js APP.translation.generateTranslationHTML("dialog.OK") // returns OK ``` @@ -46,7 +46,7 @@ You can add translatable text in the HTML: **Note:** If you dynamically add HTML elements don't forget to call APP.translation.translateElement(jquery_selector) to translate the text initially. - ``` + ```js APP.translation.translateString("dialog.OK") // returns the value for the key of the current language file. "OK" for example. ```