问题
I planed to create Departmental Store Laravel Web Application in Tamil Language Not Using English. How to do it?
回答1:
You can create web apps using laravel's Localization.
For that, you need to create language strings. Language strings are stored in files within the resources/lang
directory.
You need to create locale:
Route::get('welcome/{locale}', function ($locale) {
App::setLocale($locale);
//
});
Then create file within that directory and save it messages.php
name like this:
<?php
return [
'welcome' => 'Welcome to our application'
];
?>
Then you need to use this as in any blade file like:
@lang('messages.welcome')
Also, please read the laravel docs from here: enter link description here
回答2:
In your encoding defined at DB and front end use - UTF-8 encoding which supports most of the international languages
来源:https://stackoverflow.com/questions/44381422/how-to-create-tamil-language-based-web-application-in-laravel-5-4