Skip to content

Commit

Permalink
Use humanize enum key for I18n.
Browse files Browse the repository at this point in the history
  • Loading branch information
masterT authored Nov 5, 2021
1 parent bb56942 commit baf4406
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 baf4406

Please sign in to comment.