martinandert / counterpart

A translation and localization library for Node.js and the browser.
MIT License
242 stars 25 forks source link

variables doesn't work #31

Closed anorudes closed 8 years ago

anorudes commented 8 years ago

I read all documentation and wrote this code:

{
  followAuthor: 'Author %(author) added your subscription list',
}
Language.translate('followAuthor', { author: 'test' });

and get:

SyntaxError: [sprintf] unexpected placeholder
martinandert commented 8 years ago

@anorudes See https://github.com/martinandert/counterpart/issues/11

anorudes commented 8 years ago

Thanks. but it's really strange)