ttag-org / ttag

:orange_book: simple approach for javascript localization
https://ttag.js.org/
MIT License
345 stars 44 forks source link

Is it possible to use `jt` with plural forms? #160

Open anilanar opened 5 years ago

anilanar commented 5 years ago

I couldn't find anything in the docs. Or can we use ngettext with JSX? e.g:

const countButton = <Button>{count}</Button>;
const result = 
  <div>
   {ngettext(msgid`${countButton} time`, `${countButton} times`, count)}
  </div>;
AlexMost commented 5 years ago

Hi @anilanar! Currently, there is no such feature. I think that our library should have that. Will try to implement that soon.