Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit c7ca563

Browse files
committed
Merge pull request activeadmin#1332 from Pepan/master
dashboard section with localization
2 parents b449ae5 + e1cfe1a commit c7ca563

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/active_admin/views/dashboard_section_renderer.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ def build(section)
1111
protected
1212

1313
def title
14-
@section.name.to_s.titleize
14+
begin
15+
I18n.t!("active_admin.sections.#{@section.name.to_s}")
16+
rescue I18n::MissingTranslationData
17+
@section.name.to_s.titleize
18+
end
1519
end
1620

1721
end

0 commit comments

Comments
 (0)