BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Get All languages values. #156

Closed betterapp closed 3 months ago

betterapp commented 3 months ago

We have a API that return products data. We have some localization fields. Is it possible to get values for all languages in one query ?

@BlackbitDevs

betterapp commented 3 months ago

image

BlackbitDevs commented 3 months ago

Just for documentation if somebody else finds this issue:

From the Readme:

Get all languages for localized field

While you can request a specific language for example with the data query selector name#en, you can get the value of the field in all configured languages via name#all. This will give you


{ "de": "Fahrrad", "en": "Bicycle" }