You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When bound parameters are passed into the t Handlebars helper, the output is [object Object]. For instance, in a test like the following where testarg is __count__ frogs in the 'en' locale and model.count is 1000
{{t"testarg"count=model.count}}
the browser displays [object Object] instead of the expected '1000 frogs'.
The browser may be displaying the result of calling toString on the stream returned from the helper, rather than the stream's value. Debugging code shows that the stream's value function is never called.
Changing the helper to unbound allows it to display '1000 frogs', but as expected the count does not update when the model is changed.
The text was updated successfully, but these errors were encountered:
When bound parameters are passed into the
t
Handlebars helper, the output is[object Object]
. For instance, in a test like the following wheretestarg
is__count__ frogs
in the 'en' locale andmodel.count
is 1000the browser displays
[object Object]
instead of the expected '1000 frogs'.The browser may be displaying the result of calling
toString
on the stream returned from the helper, rather than the stream's value. Debugging code shows that the stream's value function is never called.Changing the helper to unbound allows it to display '1000 frogs', but as expected the count does not update when the model is changed.
The text was updated successfully, but these errors were encountered: