We are trying to get the Article information via Shopware v5 API and it seems to be impossible to get the locale for translations.
The translation entries are referencing to the Shop (via shopId )
"translations": {
"3": {
"name": "Variant product (DE)",
"descriptionLong": "Description (DE)",
"shopId": 3
}
}
but the Shop entry doesn’t reveal its locale:
{
"data": {
"id": 1,
"mainId": null,
"categoryId": 3,
"name": "Demoshop (EN)",
"title": null,
"position": 0,
"host": "test.de.shopware-hosting.com",
"basePath": null,
"baseUrl": null,
"hosts": "test.de.shopware-hosting.com",
"secure": false,
"templateId": 23,
"default": true,
"active": true,
"customerScope": false,
"currency": {
"id": 3,
"currency": "USD",
"name": "USD",
"default": 0,
"factor": 0,
"symbol": "$",
"symbolPosition": 0,
"position": 0
}
},
"success": true
}
So, it turns out you can’t know what language the translation stands for!
Has someone solved it in some way?