diff options
Diffstat (limited to 'dev-wallet-wx.rst')
-rw-r--r-- | dev-wallet-wx.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dev-wallet-wx.rst b/dev-wallet-wx.rst index 5995226e..8ba29975 100644 --- a/dev-wallet-wx.rst +++ b/dev-wallet-wx.rst @@ -170,12 +170,14 @@ Internationalisation Strings in the JavaScript code are internationalised using the following functions: - *i18n*: translate string with arbitrary arguments, the result is returned as string. + .. code-block:: js i18n`You have ${n} coins.` - *i18n.parts*: Interpolate i18nized values with arbitrary objects. Useful for example to include HTML elements. + .. code-block:: js i18n.parts`Visit ${link} to get more coins.` |