Skip to content

Commit

Permalink
Change i18n key for Store link in admin header
Browse files Browse the repository at this point in the history
spree_i18n translates the "store" key in different ways, sometimes like
"shop" and sometimes like "save". This could be because of a clash in
usage between Spree add-ons.

To be more specific, the "Store" link in the admin section now uses the
"admin.header.store" translation key.
  • Loading branch information
kristinalim committed Sep 6, 2018
1 parent 0a05e69 commit 0d94b5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/layouts/admin/_login_nav.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
= link_to t(:logout), spree.logout_path
%li{"data-hook" => "store-frontend-link"}
%i.icon-external-link
= link_to t(:store), spree.root_path, :target => '_blank'
= link_to t(".header.store"), spree.root_path, target: "_blank"
4 changes: 4 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2589,6 +2589,10 @@ See the %{link} to find out more about %{sitename}'s features and to start using
my_account: "My account"
date: "Date"
time: "Time"
layouts:
admin:
header:
store: Store
admin:
orders:
invoice:
Expand Down

0 comments on commit 0d94b5e

Please sign in to comment.