Skip to content

Commit

Permalink
Add translations for the headline text after the search
Browse files Browse the repository at this point in the history
  • Loading branch information
Radomir98 committed Sep 12, 2024
1 parent af55b76 commit 2bbef78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Resources/snippet/de_DE/storefront.de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"value": "Nosto Cookies",
"description": "Ermöglicht die Identifizierung des Benutzers, wenn er nicht angemeldet ist!"
}
},
"search": {
"headlineText": "%count% Suchergebnisse für \"%searchTerm%\" "
}
}
3 changes: 3 additions & 0 deletions src/Resources/snippet/en_GB/storefront.en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"value": "Nosto Cookies",
"description": "Allow to identify the user when not logged in!"
}
},
"search": {
"headlineText": "%count% Search results for \"%searchTerm%\" "
}
}
2 changes: 1 addition & 1 deletion src/Resources/views/storefront/page/search/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
: page.listing.criteria.extensions.nostoPagination.total
%}
{% if hits %}
{{ "search.headline"|trans({
{{ "search.headlineText"|trans({
'%count%': hits,
'%searchTerm%': page.searchTerm,
}) }}
Expand Down

0 comments on commit 2bbef78

Please sign in to comment.