Skip to content

fix(no-single-variables-to-translate): allow top-level calls to plural/select/selectOrdinal#133

Open
jtbandes wants to merge 2 commits intolingui:mainfrom
jtbandes:fix-toplevel-plural
Open

fix(no-single-variables-to-translate): allow top-level calls to plural/select/selectOrdinal#133
jtbandes wants to merge 2 commits intolingui:mainfrom
jtbandes:fix-toplevel-plural

Conversation

@jtbandes
Copy link
Copy Markdown

Fixes #126

This PR updates the no-single-variables-to-translate logic to explicitly allow syntax like msg`${plural(...)}`, which seems to be the recommended way to do plural messages with a custom i18n instance (outside of JSX), according to this discussion: lingui/js-lingui#1312 (comment)

@jtbandes
Copy link
Copy Markdown
Author

jtbandes commented May 6, 2026

Hi @timofei-iatsenko, any interest in this patch?

@jtbandes jtbandes force-pushed the fix-toplevel-plural branch from c548c5f to b72abf3 Compare May 6, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

no-single-variables-to-translate warns about plural() used inside t or msg

1 participant