-
Notifications
You must be signed in to change notification settings - Fork 44
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
nggettext and msgid returning ${ undefined } on plural #208
Comments
Thanks for the report! will try to fix that ASAP |
I ran into something that I think might be a similar issue, so just detailing what I found in hopes that it is helpful. In my codebase, I had two strings with the same key -- one had plural forms and the other did not. e.g.
vs
The singular form existed first, and was all that was included in the extracted PO files (even after the plural was added). Even when the singular form was removed, the po files were not updated. Using said translation seemed to cause a runtime error with By deleting the singular form from all the translated versions and regenerating, I was able to get past this. Not sure if that's helpful, but the singular/plural split seems like it might be related here. |
We can see that the issue is replaceVariables takes variables only from first string (that is wrapped with |
A string such as
when translated will result in
It seems that variables aren't replaced in the plural version
I've created a reproducible example here: mmso/ttag-bug-example@5a550dd
The text was updated successfully, but these errors were encountered: