Open uladzimirdev opened 4 months ago
Hi, seems like a bug. As a temporary workaround you can try to use
ngettext(msgid`record`, `records`, n);
The most frequent case for ngettext is when n
is present in the translated string like
ngettext(msgid`${ n } record`, `${ n } records`, n);
But I agree that your example should also work fine. Will take a look at this case ASAP.
fair enough, I had this problem only because of eslint quotes rule, which replaced backticks with double quotes as there wasn't any parameter inside.
Thanks for confirming
Hi, I couldn't find the answer from the code, so maybe you can help me to understand how to handle such simple case
babel plugin doesn't like such strings and raises an error
is it a bug or just unexpected usage? is there any workaround?