Closed
Description
Preconditions and environment
- Magento version: 2.4.5
- A store view with any language thats not english
Steps to reproduce
Execute the following graphql query:
query searchProducts {
products(search: "") {
aggregations {
label
}
}
}
This query fetches all available aggregations (filters) and the labels for them.
Expected result
I would expect all labels to be translated into the language of the store (german in my case).
{
"data": {
"products": {
"aggregations": [
{
"label": "Preis"
},
{
"label": "Kategorie"
},
{
"label": "Farbe"
},
{
"label": "..."
},
]
}
}
}
Actual result
{
"data": {
"products": {
"aggregations": [
{
"label": "Price"
},
{
"label": "Category"
},
{
"label": "Farbe"
},
{
"label": "..."
},
]
}
}
}
Only the label for the attribute color
(Farbe) is translated as set in the adminhtml. The label set for the price attribute is ignored and I can't even set any label for the category attribute.
Additional information
The problem arises because of hardcoded labels in the code:
and
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done