Skip to content

Commit

Permalink
fix: add translated reviewCount (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect authored Sep 7, 2023
1 parent d65d4b4 commit 866d283
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Resources/snippet/froshProductCompare.de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"rating": "Bewertung",
"title": "Überblick"
},
"content": {
"reviewLinkText": "{0} 0 Bewertungen | {1} 1 Bewertung|]1,Inf[ %count% Bewertungen"
},
"specification": {
"title": "Spezifikation",
"notSpecified": "-"
Expand Down
3 changes: 3 additions & 0 deletions src/Resources/snippet/froshProductCompare.en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"rating": "Rating",
"title": "Overview"
},
"content": {
"reviewLinkText": "{0} 0 reviews | {1} 1 review|]1,Inf[ %count% reviews"
},
"specification": {
"title": "Specification",
"notSpecified": "-"
Expand Down
3 changes: 3 additions & 0 deletions src/Resources/snippet/froshProductCompare.fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"rating": "Évaluation",
"title": "Aperçu"
},
"content": {
"reviewLinkText": "{0} 0 évaluations | {1} 1 évaluation|]1,Inf[ %count% évaluations"
},
"specification": {
"title": "Spécifications",
"notSpecified": "-"
Expand Down
3 changes: 3 additions & 0 deletions src/Resources/snippet/froshProductCompare.nl-NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"rating": "Beoordeling",
"title": "Overzicht"
},
"content": {
"reviewLinkText": "{0} 0 beoordelingen | {1} 1 beoordeling|]1,Inf[ %count% beoordelingen"
},
"specification": {
"title": "Specificatie",
"notSpecified": "-"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
target="_blank"
href="{{ seoUrl('frontend.detail.page', {'productId': product.id}) }}#review-tab-pane"
aria-controls="review-tab-pane">
{{ product.productReviews.count }}
{{ "detail.reviewLinkText"|trans({'%count%': 1})|sw_sanitize }}
{{ "froshProductCompare.section.content.reviewLinkText"|trans({'%count%': product.productReviews.count})|sw_sanitize }}
</a>
</td>
{% endblock %}
Expand Down

0 comments on commit 866d283

Please sign in to comment.