What is meant by Laravel - Localization ?

Answers were Sorted based on User's Feedback



What is meant by Laravel - Localization ?..

Answer / 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

What is meant by Laravel - Localization ?..

Answer / Hduwehfuwehf

Localization in Laravel refers to the process of adapting an application to different languages, regional formats, and cultural conventions. In Laravel, you can easily translate your application's strings using the `trans()` helper function and the `config/app.php` file's 'locales' option. You can also define custom translations in the `resources/lang` directory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

How do I log an error?

1 Answers  


What are the Forms in Laravel ?

1 Answers  


What is kernel in laravel?

1 Answers  


what is meant by Global Middleware and Route Middleware ?

2 Answers  


What are macros in laravel?

1 Answers  


In which folder robot.txt is placed?

1 Answers  


What is asset in laravel?

1 Answers  


Where is route in laravel?

1 Answers  


What is facades in laravel?

1 Answers  


How to run a php file in laravel?

1 Answers  


What is service container in laravel?

1 Answers  


What is Basic Response in Laravel ?

2 Answers  


Categories