Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Move some content from translations to views

Robert Nowakowskie11fde6240fa
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index b8128bbbc4..5c1a8e9107 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -925,24 +925,6 @@ en:
hide_from_subcategories_nav: Hide from subcategories navigation
home: Home
home_page: homepage
- homepage:
- bestsellers: BESTSELLERS
- fashion_trends: FASHION TRENDS
- fashion_trends_note: Want to rock this season’s hottest trend in style? These are the top fashion from Summer 2020 Fashion Weeks that are coming our way this season.
- men: MEN
- new: NEW
- new_collection: NEW COLLECTION
- read_more: READ MORE
- shoes: SHOES
- shop_now: SHOP NOW
- sportswear: SPORTSWEAR
- streetstyle: STREETSTYLE
- summer_year: "Summer %{year}"
- summer_collection: Summer Collection
- summer_sale: SUMMER SALE
- trending: TRENDING
- up_to_60: UP TO 60%
- women: WOMEN
help_center: Help Center
i18n:
available_locales: Available Locales
diff --git a/frontend/app/views/spree/home/index.html.erb b/frontend/app/views/spree/home/index.html.erb
index 75ed4bf74c..8d38142758 100644
--- a/frontend/app/views/spree/home/index.html.erb
+++ b/frontend/app/views/spree/home/index.html.erb
@@ -4,14 +4,14 @@
<img class="lazyload hero-image position-absolute"
data-src="<%= asset_path('homepage/main_banner.jpg') %>"
data-srcset="<%= image_source_set('homepage/main_banner') %>"
- alt="<%= Spree.t('homepage.summer_collection')%>" />
+ alt="Summer Collection" />
<div class="hero-content">
<div class="homepage-hero-image-text mb-2 mx-auto pb-3 pb-md-4">
- <%= Spree.t('homepage.summer_collection') %>
+ Summer Collection
</div>
<div>
- <%= link_to Spree.t('homepage.shop_now'), spree.products_path, class: 'btn btn-primary spree-btn px-5' %>
+ <%= link_to 'SHOP NOW', spree.products_path, class: 'btn btn-primary spree-btn px-5' %>
</div>
</div>
</div>
@@ -24,10 +24,10 @@
<img class="w-100 lazyload"
data-src="<%= asset_path('homepage/category_banner_upper.jpg') %>"
data-srcset="<%= image_source_set('homepage/category_banner_upper') %>"
- alt="<%= Spree.t('homepage.men')%>" />
+ alt="Men" />
<div class="homepage-taxon-box-text">
- <h3><%= Spree.t('homepage.men') %></h3>
+ <h3>Men</h3>
</div>
<% end %>
@@ -35,10 +35,10 @@
<img class="w-100 lazyload"
data-src="<%= asset_path('homepage/category_banner_lower.jpg') %>"
data-srcset="<%= image_source_set('homepage/category_banner_lower') %>"
- alt="<%= Spree.t('homepage.sportswear')%>" />
+ alt="Sportswear" />
<div class="homepage-taxon-box-text" role="img" aria-label="<%= Spree.t('homepage.sportswear') %>">
- <h3><%= Spree.t('homepage.sportswear') %></h3>
+ <h3>Sportswear</h3>
</div>
<% end %>
@@ -50,10 +50,10 @@
<img class="w-100 lazyload"
data-src="<%= asset_path('homepage/big_category_banner.jpg') %>"
data-srcset="<%= image_source_set('homepage/big_category_banner') %>"
- alt="<%= Spree.t('homepage.women')%>" />
+ alt="Women" />
<div class="homepage-taxon-box-text">
- <h3><%= Spree.t('homepage.women') %></h3>
+ <h3>Women</h3>
</div>
<% end %>
@@ -65,12 +65,12 @@
<div class="homepage-fashion-trends-box mb-3">
<div class="text-center">
- <div class="homepage-fashion-trends-box-summer-text mb-1"><%= Spree.t('homepage.summer_year', year: Date.current.year) %></div>
- <div class="homepage-fashion-trends-box-fashion-trends-text mb-2"><%= Spree.t('homepage.fashion_trends') %></div>
+ <div class="homepage-fashion-trends-box-summer-text mb-1">Summer 2021</div>
+ <div class="homepage-fashion-trends-box-fashion-trends-text mb-2">FASHION TRENDS</div>
<div class="homepage-fashion-trends-box-description-text text-center mb-3">
- <%= Spree.t('homepage.fashion_trends_note') %>
+ Want to rock this season’s hottest trend in style? These are the top fashion from Summer 2020 Fashion Weeks that are coming our way this season.
</div>
- <%= link_to Spree.t('homepage.read_more'), spree.nested_taxons_path('trending'), class: 'btn px-5 spree-btn btn-outline-primary' %>
+ <%= link_to 'READ MORE', spree.nested_taxons_path('trending'), class: 'btn px-5 spree-btn btn-outline-primary' %>
</div>
</div>
@@ -85,14 +85,14 @@
<img class="w-100 lazyload"
data-src="<%= asset_path('homepage/promo_banner_left.jpg') %>"
data-srcset="<%= image_source_set('homepage/promo_banner_left') %>"
- alt="<%= Spree.t('homepage.new_collection')%>" />
+ alt="NEW COLLECTION" />
- <div class="homepage-bottom-box-inner" role="img" aria-label="<%= Spree.t('homepage.new_collection') %>">
+ <div class="homepage-bottom-box-inner" role="img" aria-label="New Collection">
<div class="homepage-bottom-box-inner-small-text">
- <%= Spree.t('homepage.new_collection') %>
+ New Collection
</div>
<div class="homepage-bottom-box-inner-big-text">
- <%= Spree.t('homepage.streetstyle') %>
+ Streetstyle
</div>
</div>
</div>
@@ -105,14 +105,14 @@
<img class="w-100 lazyload"
data-src="<%= asset_path('homepage/promo_banner_right.jpg') %>"
data-srcset="<%= image_source_set('homepage/promo_banner_right') %>"
- alt="<%= Spree.t('homepage.summer_sale')%>" />
+ alt="Summer Sale" />
<div class="homepage-bottom-box-inner">
<div class="homepage-bottom-box-inner-small-text">
- <%= Spree.t('homepage.summer_sale') %>
+ Summer Sale
</div>
<div class="homepage-bottom-box-inner-big-text">
- <%= Spree.t('homepage.up_to_60') %>
+ Up To 60%
</div>
</div>
</div>