lib/i18n/tasks/reports/base.rb in i18n-tasks-0.8.5 vs lib/i18n/tasks/reports/base.rb in i18n-tasks-0.8.6
- old
+ new
@@ -49,7 +49,16 @@
def forest_to_attr(forest)
forest.keys(root: false).map { |key, node|
{key: key, value: node.value, type: node.data[:type], locale: node.root.key, data: node.data}
}
end
+
+ def format_locale(locale)
+ return '' unless locale
+ if locale.split('+') == task.locales.sort
+ 'all'
+ else
+ locale.tr '+', ' '
+ end
+ end
end
end