If you do npm run counter-uk you'll get the string with the placeholders and no replacement.
✔ uk.po updated
починаємо рахунок до 3
something again ${ i }
something
something again ${ i }
something again ${ i }
This happens because the t function iterates over the msgid to find replacements when translating, and if it has none then it doesn't do any replacement on the plural string.
Strings are not being translated if the
msgid
tagged string doesn't have any expression in it.I've set up a minimum working example here: https://github.com/alvare/ttag-bug-mwe
If you do
npm run counter-uk
you'll get the string with the placeholders and no replacement.This happens because the
t
function iterates over themsgid
to find replacements when translating, and if it has none then it doesn't do any replacement on the plural string.