lib/i18n/tasks/reports/base.rb in i18n-tasks-0.9.33 vs lib/i18n/tasks/reports/base.rb in i18n-tasks-0.9.34

- old
+ new

@@ -7,10 +7,11 @@ def initialize(task = I18n::Tasks::BaseTask.new) @task = task end attr_reader :task + delegate :base_locale, :locales, to: :task protected def missing_type_info(type) @@ -56,19 +57,19 @@ end end def format_locale(locale) return '' unless locale + if locale.split('+') == task.locales.sort 'all' else locale.tr '+', ' ' end end def collapse_missing_tree!(forest) forest = task.collapse_plural_nodes!(forest) - forest = task.collapse_same_key_in_locales!(forest) { |node| node.data[:type] == :missing_used } - forest + task.collapse_same_key_in_locales!(forest) { |node| node.data[:type] == :missing_used } end end end