Ensure client-side translations are correctly extracted into the message templates.

This commit is contained in:
Sarah McAlear
2017-03-27 13:24:47 -04:00
committed by Dave Page
parent 633d2ad28c
commit 82bd97aed0
9 changed files with 99 additions and 98 deletions

View File

@@ -30,12 +30,12 @@ Jinja:
.. code-block:: javascript
define(['sources/translate', ...], function(t, ...){
define(['sources/gettext', ...], function(gettext, ...){
...
var alert = alertify.prompt(
t('Password Change'),
t('New password for %(userName)s', {userName: 'jsmith' }),
gettext('Password Change'),
gettext('New password for %(userName)s', {userName: 'jsmith' }),
...
)
})