Closed oknesar closed 10 months ago
I recently faced with same problem when I have repeating vars in one sentence and I really don't want to cut it into two parts!
Ex:
t`some text ${var} some text ${var}`
I fixed it like this but it looks too ugly:
const var2 = var;
t`some text ${var} some text ${var2}`
Bumping this issue
~I just encountered this bug as well. I wonder what the root cause is?~ Nevermind, just found the fixing #248... almost two months
I have two phrases both of them are translated but 2nd(where I use
br
twice) doesn't get a translationthe problem is here https://github.com/ttag-org/ttag/blob/811efc38fa31e63d58c3978c1a96a6cedb728907/src/utils.js#L89 because of the variable used twice, it overwrites into
variableNumberMap
object