From d06bccb832e27b9228252f0838a42f82b14ad127 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Thu, 6 Sep 2018 17:14:23 +0800 Subject: [PATCH] Change i18n key for Store link in admin header 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. --- app/views/spree/layouts/admin/_login_nav.html.haml | 2 +- config/locales/en.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/spree/layouts/admin/_login_nav.html.haml b/app/views/spree/layouts/admin/_login_nav.html.haml index 088ac02377..816eab7bda 100644 --- a/app/views/spree/layouts/admin/_login_nav.html.haml +++ b/app/views/spree/layouts/admin/_login_nav.html.haml @@ -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" diff --git a/config/locales/en.yml b/config/locales/en.yml index f34706ca29..0f6e62a65f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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: