Closed rusel1989 closed 8 years ago
@oliversalzburg: ever combined those features?
Humm, I have not. But I somewhat doubt that it's object notation related. Let's see if I can construct a small test case.
@rusel1989 In your scenario, you must place the mustache parameters as the last argument to __
, like so:
var s = i18n.__.apply(null, ['errors.isLength', 5, 90, {path: 'something', value: 'interesting'}]);
I'm not sure if this is a documentation issue. But it doesn't seem like a bug. I wouldn't recommend mixing mustache and vsprintf though ;D
Thank you very much for reply :+1: . Maybe u could mention that the order of arguments matters here: https://github.com/mashpie/i18n-node#mustache-support .
@oliversalzburg: Thank you so much - I'll take care of doks :+1:
It is (it was) a documentation issue, fixed that https://github.com/mashpie/i18n-node#mustache-support and added a test https://github.com/mashpie/i18n-node/blob/master/test/i18n.api.js#L94
i use object notation, but dunno if it's important, howewer i experienced some problems when mixing mustache / sprintf
If i call:
with following translation:
i got following output: