Android Export does not keep variable indexes consistent across plurals
alex-goodnature opened this issue · 2 comments
alex-goodnature commented
For example:
0: No new messages in {{channelName}}
1: A new message in {{channelName}}
other: {{messageCount}} new messages in {{channelName}}
With be replaced with:
0: No new messages in %1$s
1: A new message in %1$s
other: %1$s new messages in %2$s
This isn't correct as the channelName
variable's index has now changed from 1 to 2 and the string replacement can't work properly. The indexes of the placeholders needs to be consistent across plurals and preferably variants too.
azjgard commented
Hi @alex-goodnature, sorry you've run into this and thanks so much for reporting.
We have prioritized this internally and will be working on a fix tomorrow -- I'll check back in tomorrow with an update!
azjgard commented
Hi @alex-goodnature, we just released a fix for this. Can you confirm that it's fixed on your end as well?
The closing of this issue happened automatically, but feel free to re-open if the problem persists for you!