Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 815d03d

Browse files
committed
Add title attribute with the locale's name
1 parent 60a5b9e commit 815d03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/view_helpers/flag_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module FlagHelper
66

77
# Return an image tag with background of given locale
88
def flag_icon(locale)
9-
content_tag :i, '', class: "flag flag-#{locale}"
9+
content_tag :i, '', class: "flag flag-#{locale}", title: I18n.t("active_admin.globalize.language.#{locale}")
1010
end
1111

1212
end

0 commit comments

Comments
 (0)