File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,10 @@ Feature: Internationalization
3333 And I go to the dashboard
3434 Then I should see "Bookstore"
3535 Then I should see "Logout"
36+
37+ Scenario : Overriding translations
38+ Given I am logged in
39+ And a store named "Hello words" exists
40+ When I go to the dashboard
41+ When I follow "Bookstores"
42+ Then I should see "Download this:"
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class Railtie < ::Rails::Railtie
5353 config . after_initialize do
5454 # Add load paths straight to I18n, so engines and application can overwrite it.
5555 require 'active_support/i18n'
56- I18n . load_path += Dir [ File . expand_path ( '../active_admin/locales/*.yml' , __FILE__ ) ]
56+ I18n . load_path . unshift * Dir [ File . expand_path ( '../active_admin/locales/*.yml' , __FILE__ ) ]
5757 end
5858 end
5959
Original file line number Diff line number Diff line change 44 store :
55 one : Bookstore
66 other : Bookstores
7+ active_admin :
8+ download : " Download this:"
You can’t perform that action at this time.
0 commit comments