How to show translations in Blade files
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 40
- Joined: 02 Dec 2021, 17:18
How to show translations in Blade files
I have created translation keys in shop.php for various languages
how Can I show them on laravel blade files
Help me to add proper syntax for this
TIA
how Can I show them on laravel blade files
Code: Select all
$this->translate( 'header', 'activities' )
Help me to add proper syntax for this
TIA
Re: How to show translations in Blade files
In the Laravel Blade files, you have to use its "_()" method for translation adn put the translations into the language folder as JSON files.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 40
- Joined: 02 Dec 2021, 17:18
Re: How to show translations in Blade files
We cannot use those translation keys-value pairs defined under shop.php here in laravel blade files ?
Re: How to show translations in Blade files
No, Laravel doesn't support the Aimeos translation via Gettext.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star