eslint-plugin icon indicating copy to clipboard operation
eslint-plugin copied to clipboard

New Rule: Disallow t inside t

Open jeresig opened this issue 1 year ago • 2 comments

Similar to the no-trans-inside-trans rule, I've noticed that there are failures to extract strings when a t is used inside a t. For example, this should be an error:

t`some text ${t`some other text`}`

Thanks for this great library!

jeresig avatar Dec 03 '24 15:12 jeresig

Hi @jeresig, thanks for the suggestion!

I remember the same question in our Discord chat recently - https://discord.com/channels/974702239358783608/974704045346394172/1311126428300869692

andrii-bodnar avatar Dec 04 '24 08:12 andrii-bodnar

Same issue for t inside plural. I see this again and again in our usage where people are wondering why the extraction is not working correctly.

swernerx avatar Jan 07 '25 13:01 swernerx