Skip to content
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

Ignore template literals in i18nKey and ns attributes of Trans nodes #162

Closed
wants to merge 1 commit into from

Conversation

soldag
Copy link

@soldag soldag commented Sep 20, 2019

When parsing Trans nodes in JSX code, only static strings should be accepted for i18nKey and ns attributes. Otherwise, the resulting i18n resource files will contain wrong keys that are not used in the code. That's why I suggest to ignore Trans nodes with these attributes having values of a type other than Literal.

Resolves #161

@cheton cheton linked an issue Jul 6, 2022 that may be closed by this pull request
@cheton cheton closed this Jan 17, 2023
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.

Make it possible to ignore template strings Leave html tags as they are. Is it possible?
2 participants