Update translation docs for client side JS translation support.

This commit is contained in:
Atira Odhner 2017-03-24 11:40:51 +00:00 committed by Dave Page
parent d4e88217eb
commit 73193a0d6d

View File

@ -30,12 +30,16 @@ Jinja:
.. code-block:: javascript .. code-block:: javascript
var alert = alertify.prompt( define(['translate', ...], function(t, ...){
'{{ _('Add a server group') }}',
'{{ _('Enter a name for the new server group') }}',
''
... ...
)
var alert = alertify.prompt(
t('Password Change'),
t('New password for %(userName)s', {userName: 'jsmith' }),
...
)
})
Updating and Merging Updating and Merging
==================== ====================