Skip to content

Commit

Permalink
Merge pull request #101 from masterT/main
Browse files Browse the repository at this point in the history
Use humanize enum key for I18n.
  • Loading branch information
lucascaton authored Nov 7, 2021
2 parents 4bf3930 + baf4406 commit 120f608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/enumerate_it/enum/templates/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
enumerations:
<%= singular_name %>:
<%- locale_fields.each do |name| -%>
<%= name %>: '<%= name.capitalize %>'
<%= name %>: '<%= name.humanize %>'
<%- end -%>

0 comments on commit 120f608

Please sign in to comment.