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

Use humanize enum key for I18n. #101

Merged
merged 1 commit into from
Nov 7, 2021
Merged

Conversation

masterT
Copy link
Contributor

@masterT masterT commented Nov 5, 2021

Fixes #100.

Copy link
Owner

@lucascaton lucascaton left a comment

Choose a reason for hiding this comment

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

Thanks, @masterT!

I'm concerned that humanize method is part of ActiveSupport, isn't it?
This wouldn't work for non-Rails projects 🤔

@masterT
Copy link
Contributor Author

masterT commented Nov 6, 2021

Is the generator only available for Rails project? I thought it was. 🤔

@lucascaton
Copy link
Owner

Ops, you're right. Thanks, @masterT! 😃

Copy link
Owner

@lucascaton lucascaton left a comment

Choose a reason for hiding this comment

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

🙇

@lucascaton lucascaton merged commit 120f608 into lucascaton:main Nov 7, 2021
@lucascaton
Copy link
Owner

This fix has been included in the latest version of the gem:

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.

Rails generator should humanize enum key for default I18n value
2 participants