9 lines
262 B
Ruby
9 lines
262 B
Ruby
module ActiveAdminHelper
|
|
def render_translations(attribute, joiner = " | ")
|
|
attribute.map do |locale, translation|
|
|
tag.strong("#{I18n.t("locales.#{locale}", locale: locale)}: ") +
|
|
tag.span(translation)
|
|
end.join(joiner).html_safe
|
|
end
|
|
end
|