summaryrefslogtreecommitdiff
path: root/dev-wallet-wx.rst
diff options
context:
space:
mode:
Diffstat (limited to 'dev-wallet-wx.rst')
-rw-r--r--dev-wallet-wx.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-wallet-wx.rst b/dev-wallet-wx.rst
index 4516c015..d3738631 100644
--- a/dev-wallet-wx.rst
+++ b/dev-wallet-wx.rst
@@ -160,12 +160,16 @@ Strings in the JavaScript code are internationalised using the following functio
i18n`You have ${n} coins.`
-- *i18n.parts*: Interpolate i18nized values with arbitrary objects. Useful for example to include HTML elements.
+- *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.`
-- *i18n.pluralize*: translate with plural form
+- *i18n.pluralize*: translate with plural form.
+ The i18n.number() function returns a ``PluralNumber`` object
+ that specifies the argument that determines the plural form,
+ if not present the first numeric argument is used.
.. code-block:: js