Generate default group labels with Setting.default_language

pull/5212/head
Oliver Günther 8 years ago
parent 970923c62c
commit 6eaa291f88
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 2
      app/models/type/attribute_groups.rb

@ -95,7 +95,7 @@ module Type::AttributeGroups
ordered = []
default_groups.map do |groupkey, label_key|
members = values[groupkey]
ordered << [I18n.t(label_key), members.sort] if members.present?
ordered << [I18n.t(label_key, locale: Setting.default_language), members.sort] if members.present?
end
ordered

Loading…
Cancel
Save