Skip to content

Commit 098ee81

Browse files
resource_class.name is usually uppercase which would not get i18n'd correctly
1 parent 065ba85 commit 098ee81

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/administrate_exportable/exporter_service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def headers
6464
if attr_key.include?('_id')
6565
attr_key
6666
else
67-
I18n.t(
68-
"helpers.label.#{resource_class.name}.#{attr_key}",
67+
I18n.t(
68+
"helpers.label.#{resource_class.name.downcase}.#{attr_key}",
6969
default: attr_key,
7070
).titleize
7171
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module AdministrateExportable
2-
VERSION = "0.6.1"
2+
VERSION = "0.6.2"
33
end

0 commit comments

Comments
 (0)