Home > Enterprise >  Use two or more locale translations at same time in same page in Laravel?
Use two or more locale translations at same time in same page in Laravel?

Time:10-17

I am using Laravel 8. How I can show translation for two or more lang on the same page. Please see the image below:

enter image description here

Any idea how I can achieve this. Thanks in advance.

CodePudding user response:

You can pass a third argument to the __ function.

For example:

{{ __('Address', [], 'en') }} 

https://laravel.com/docs/8.x/localization#retrieving-translation-strings

Definition of that helper function you can find here.

  • Related