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

fix: support snake_case in translation key #1119

Merged
merged 1 commit into from
Jul 20, 2023
Merged

fix: support snake_case in translation key #1119

merged 1 commit into from
Jul 20, 2023

Conversation

loukhin
Copy link
Contributor

@loukhin loukhin commented Jul 20, 2023

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[X] Bug fix
[ ] New feature
[ ] Other, please explain:

What changes did you make? (Give an overview)
Update RemovePlural type so that it doesn't truncate translation key that was in snake_case

Which issue (if any) does this pull request address?
Fixes #1114

Is there anything you'd like reviewers to focus on?
I'm not sure about tagged template string

t`example`

It doesn't seem to work for me before/after the changes (but I didn't use it anyway)

Copy link
Owner

@aralroca aralroca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@aralroca
Copy link
Owner

@loukhinI I understand that for now is not possible yet to verify the string on tagged template string, so only allowing that is possible is fine

@aralroca aralroca merged commit e82d427 into aralroca:master Jul 20, 2023
6 checks passed
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.

Translation key suggestion will be incorrect if the key is in snake_case
2 participants