gadicc / meteor-messageformat

MessageFormat i18n support for Meteor, with reactive templates
54 stars 22 forks source link

Auto extract issue #221

Open txs opened 8 years ago

txs commented 8 years ago

Exception in template helper: Expected "\\#", "\\u", "\\{", "\\}", "{", [^{}\\\0-\x1F \t\n\r], end of input or whitespace but "\\" found.

The mf will auto extract on save. But when I refresh the page and it shows this with the dynamic value like {{mf 'keyname' 'keytext' VAR1=TemplateVar VAR2=etc}} mf('hello_name', { name: var }, 'Hello {name}');

Helo me to fix this

gadicc commented 8 years ago

Thanks, @txs. Can you paste the the full template where this error is occurring? Hopefully that will be enough for me to figure out what's going on, otherwise I might need a reproduction. It looks like Blaze is getting confused by some foreign-language characters (can your own template helpers handle the same arguments?) but I can't be completely sure without seeing more.