Closed janroesner closed 9 years ago
With:
module.exports = { "greeting": "Hello, %(name)s!", "x_nights": { "zero": "No Night", "one": "1 Night", "other": "%(count) Nights" } }
executing:
translate('x_nights.other', {count: 3}) results in:
translate('x_nights.other', {count: 3})
Uncaught Error: [sprintf] %(count) Nächte(…)
Hi,
it has to be "%(count)s Nights". Notice the "s" after the ")".
@martinandert: That was not obvious in the first place. Thx for your quick reaction!
With:
executing:
translate('x_nights.other', {count: 3})
results in:Uncaught Error: [sprintf] %(count) Nächte(…)