From 799b570fb02f2a1d2f5cf500ac3c4d3f08a64450 Mon Sep 17 00:00:00 2001 From: Alex Saiannyi <67792608+bc-alexsaiannyi@users.noreply.github.com> Date: Tue, 2 Feb 2021 10:06:35 +0200 Subject: [PATCH] fix(storefront): BCTHEME-385 move a phrase from html to en.json (#1972) --- CHANGELOG.md | 1 + lang/en.json | 1 + templates/pages/compare.html | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe5c5881ba..3a406f0483 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Draft +- Moved phrase from compare.html to en.json for increasing localization. [#1972](https://github.com/bigcommerce/cornerstone/pull/1972) - Fixed focus for sort by dropdown on reloading page. [#1964](https://github.com/bigcommerce/cornerstone/pull/1964) - Fixed filtered selection not announced by screen reader. [#1966](https://github.com/bigcommerce/cornerstone/pull/1966) diff --git a/lang/en.json b/lang/en.json index e37d42f658..8cddd9845a 100755 --- a/lang/en.json +++ b/lang/en.json @@ -722,6 +722,7 @@ "5": "5 stars (best)" }, "write_a_review": "Write a Review", + "no_reviews": "No Reviews", "form_write": { "name": "Name", "email": "Email", diff --git a/templates/pages/compare.html b/templates/pages/compare.html index 012f416d39..05f518ce2c 100644 --- a/templates/pages/compare.html +++ b/templates/pages/compare.html @@ -96,7 +96,7 @@

{{#if rating}} {{> components/products/ratings rating=rating}} {{else}} - No Reviews + {{lang 'products.reviews.no_reviews'}} {{/if}} {{/each}}