Updates translation readme.
This commit is contained in:
parent
547f96c0c1
commit
076f7a82de
|
@ -41,7 +41,6 @@ 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.
|
||||
|
||||
* **via Javascript string** - call APP.translation.translateString(key, options). You can use that method to get the translated string in Javascript and then attach it in the HTML.
|
||||
|
||||
```
|
||||
APP.translation.translateString("dialog.OK") // returns the value for the key of the current language file. "OK" for example.
|
||||
|
@ -50,7 +49,6 @@ You can add translatable text in the HTML:
|
|||
For the available values of ``options`` parameter for the above methods of translation module see [i18next documentation](http://i18next.com/pages/doc_features).
|
||||
|
||||
**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.
|
||||
Otherwise you should call ``APP.translation.translateString`` and manually change the text every time the language is changed.
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue