add more than one language to the attribute type

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

add more than one language to the attribute type

Post by ahmed31916 » 06 Jul 2022, 11:12

Hello,

Is there a possibility to add more than one language to the attribute type? for example: Color

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

Re: add more than one language to the attribute type

Post by aimeos » 07 Jul 2022, 11:03

Yes, you can add translation for the attribute type in your ./config/shop.php in the "i18n" section:
https://aimeos.org/docs/latest/laravel/ ... anslations

In the HTML client templates, the codes are translated here:
https://github.com/aimeos/ai-client-htm ... y.php#L381

An example for a translation would be:

Code: Select all

'i18n' => [
    'en' => [
        'client/code' => [
            'color' => ['Colour'],
        ],
    ],
    'de' => [
        'client/code' => [
            'color' => ['Farbe'],
        ],
    ],
],
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply