Skip to content

New Rule: Disallow t inside t #90

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

Open
jeresig opened this issue Dec 3, 2024 · 2 comments
Open

New Rule: Disallow t inside t #90

jeresig opened this issue Dec 3, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jeresig
Copy link

jeresig commented Dec 3, 2024

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 jeresig changed the title New Rule: Disallow t inside t New Rule: Disallow t inside t Dec 3, 2024
@andrii-bodnar andrii-bodnar added the enhancement New feature or request label Dec 4, 2024
@andrii-bodnar
Copy link
Contributor

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 andrii-bodnar added the help wanted Extra attention is needed label Dec 9, 2024
@swernerx
Copy link
Contributor

swernerx commented Jan 7, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants