From baf44065d5e3963266f455c54ccc1fc4e812ca65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Thibout=C3=B4t?= Date: Fri, 5 Nov 2021 14:43:38 -0400 Subject: [PATCH] Use humanize enum key for I18n. --- lib/generators/enumerate_it/enum/templates/locale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/enumerate_it/enum/templates/locale.yml b/lib/generators/enumerate_it/enum/templates/locale.yml index a05eafb..30a1de3 100644 --- a/lib/generators/enumerate_it/enum/templates/locale.yml +++ b/lib/generators/enumerate_it/enum/templates/locale.yml @@ -2,5 +2,5 @@ enumerations: <%= singular_name %>: <%- locale_fields.each do |name| -%> - <%= name %>: '<%= name.capitalize %>' + <%= name %>: '<%= name.humanize %>' <%- end -%>