What is meant by Laravel - Localization ?

Answer Posted / rachana devi

Localization feature of Laravel supports different language to be used in application.
You need to store all the strings of different language in a file and these files are stored at resources/views directory.
You should create a separate directory for each supported language.
All the language files should return an array of keyed strings as shown below.
<?php
return [
'welcome' => 'Welcome to the application'
];

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is eloquent orm?

452


How will you register service providers?

405


Explain service container?

448


How will you explain middleware in laravel?

414


How do you call artisan command in laravel?

426






Does laravel passport use jwt?

413


Explain about Form without CSRF token in Laravel ?

771


Differce between contracts and facades?

465


Difference between facades vs. Dependency injection?

422


Explain validations in laravel?

437


Explain closures in laravel?

411


Does laravel support caching?

404


What is the use of accessors and mutators in eloquent?

397


How can I hide all stack whoops error information when the application is in production?

432


What is difference between var_dump and print_r?

387