Questions tagged [laravel-localization]

Laravel's localization features provide a convenient way to retrieve strings in various languages, allowing you to easily support multiple languages within your application.

Laravel's localization features provide a convenient way to retrieve strings in various languages, allowing you to easily support multiple languages within your application.

For more information about Laravel's localization functionality, see the official docs.

113 questions
-1
votes
2 answers

How to set "app.locale" by Session in every Request in Laravel?

I am developing a localization in Laravel 10. When I triggered to change the flag of Localization Then Error Show in Page. Can anyone tell Just where is the problem ? Error Message Call to undefined method…
-1
votes
1 answer

How to get the current language in Laravel while the url is not changing,

I am using two languages for my Laravel project. The default language is English. Another language is 'Bangla`. For that, I have created a folder inside resources/lang/bn. Localization middleware inside Http/Middleware. add Localization class…
Arafat Rahman
  • 993
  • 5
  • 19
  • 46
-1
votes
1 answer

How Can I Translate String Array In Laravel's localization?

I have An Array Like This In Laravel Blade: $myArray={names:{"name1","name2","name3","name4","name5"}} I call theme in my blade file like this : @foreach($myArray as $ma) {{$ma->names}}
@endforeach result :: name1 name2 name3 name4 name5 I…
-1
votes
1 answer

How can i get data from database for dropdownlist in Form in Laravel using laravel collectives?

I have used usual dropdown list and it's not worked, when i click the submit button for all the data in the form except drop down value were sent to database.how can i fix it??
-2
votes
1 answer

Laravel Spark with Laravel Localization

I'm using Laravel Localization for my project to manage multiple locales. Recently downloaded Laravel Spark for subscription management but can't make it work with Laravel Localization together. I would like my clients to access billing portal using…
Deniss Muntjans
  • 369
  • 10
  • 35
-2
votes
1 answer

How can I overwrite method “__(”?

In laravel using location method __(, like : $managerAccessText = __('common.As you have manager access'); I got text common.As you have manager access in case if this label was not found How can I overwrite method __( if i want to remove file…
Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
-3
votes
1 answer

How to translate user inputs in laravel

I have a website that is developed with Laravel which supports multi languages using localization. firstly: I created the language folder along with its file /resources/lang/en/message.php 'Welcome Page', …
-4
votes
1 answer

Laravel - (1/1) FatalErrorException syntax error, unexpected '?' in LaravelLocalization.php line 896

Everything was working well but after doing composer update, I am facing this error FatalErrorException syntax error, unexpected '?' in LaravelLocalization.php line 896 ", what is wrong? I'm using mcamara/laravel-localization package
Hervera
  • 584
  • 9
  • 17
1 2 3 4 5 6 7
8