Jsonapi get variant attribute type's translated name

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
bar_on
Posts: 15
Joined: 28 Jul 2024, 01:45

Jsonapi get variant attribute type's translated name

Post by bar_on » 20 Feb 2025, 19:52

Screenshot 2025-02-20 at 11.49.25 AM.png
Screenshot 2025-02-20 at 11.49.25 AM.png (117.4 KiB) Viewed 3738 times
In aimeos backend, I can see the attribute type has a translation section provided. I want to know if I can access this translation in product api. If not, what's the recommended method of getting this translation to show the variant attribute type in customized frontend using jsonapi, thanks.


Version:
"aimeos/aimeos-laravel": "~2023.10",
"php": "^8.1.0",

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Jsonapi get variant attribute type's translated name

Post by aimeos » 21 Feb 2025, 12:44

Not in 2023.10 but in 2024.10, you can add "&include=attribute.type" to the URL and the included type items contains an "i18n" key with the translations by language code.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply