Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow simple strings inside ngettext #53

Open
AlexMost opened this issue Jan 31, 2017 · 0 comments
Open

allow simple strings inside ngettext #53

AlexMost opened this issue Jan 31, 2017 · 0 comments
Labels

Comments

@AlexMost
Copy link
Member

AlexMost commented Jan 31, 2017

Need to think about this kind of plurals, maybe it's better to omit template literals where we don't need them.

ERROR in ./src/ngettextDemo.js
Module build failed: SyntaxError: Cannot read property 'forEach' of undefined

  20 |                 </div>
  21 |                 <button onClick={this.countInc}>{ t`Click me` }</button>
> 22 | 		<div>{ngettext(msgid`test`, 'tests', n)}</div>
     | 		      ^
  23 |             </div>
  24 |         )
  25 |     }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant