Laravel 8 tutorial - Localization | locale
Вставка
- Опубліковано 17 жов 2024
- In this laravel 8 and laravel 9video tutorial, we learn what is localization and how to use it in a simple way. This video is made by anil Sidhu in the Hindi language
steps of video
What is Localization
How to Define Localization
Set Default Locale
Set Locale with Route
Interview Question over localization
Best laravel tutorial
Laravel 9 tutorial,
Laravel 9
Laravel tutorial full playlist • Laravel 9 tutorial
please support me by subscribe, like and comment :) thank you
Interview Question:
When we missed out on any of the lists from any files, then it will return the default language instead.
In Laravel 10, lang directory is not present by default. Use 'php artisan lang:publish' command if it's missing
tq bro
sir kya ham ye languge me api call kara sktew he languge change karne ke liye????
means agr usrer dropdown me hindi select krta he puri website hindi me ho jati he?
agr use korean select krta he korean ho jati he????
ye api se languge change kr skte he?
Just love this series, hats of Anil
❤️❤️❤️ Lovely ❤️❤️❤️
What an explanation Buddy,
Keep on uploading these kind of videos please
Great tutorial. You should expand it by walking through the best way of adding "language buttons" and how the system "remembers" which language to use, when user browser around in the different app web pages.
You can get the current locale by their timezone
Agar,multiple pages ka karna hoga to pure page ko particular language me convert karna hoga..
Is that possible to change default file path resources/lang to define ?
please create one video on gate,policy and laravel role-permission
nice man bro we can set route like this
Route::group(
[
'prefix' => LaravelLocalization::setLocale(),
'middleware' => ['localeSessionRedirect', 'localizationRedirect', 'localeViewPath', 'web', 'auth:students']
],
function () {
Route::get('student/class/addMsg/{id}', ['as' => 'frontend.student.showaddmsg', 'uses' => 'UsersController@showaddmsg']);
}
i think this bestway
I am trying this tutorial for localization, I have followed all the step but getting syntax error. I saw one change that lang folder is on root folder but not inside resource folder. Please help
bhai shuru me mushkil ho rha tha smjhne me But ab sahi hai
when we forget any list it will not throw error instead display missed list in English language.
This is only for anchor and heading but if i want to make full website in hindi then ? all content should i set as hindi ?
good question
Thank you Sir boht shukriya but I have a question that how we can translate texts that are coming from database or stored in a variable?
You can store both languages in the database and retrieve what is needed.
How we can put dynamic data in locale?
How to make dynamic data on localisation please make video
if you are not given parameter like profile/en profile/hi just put profile not working, please give the soultion
it can display the this key in locale language
Hii.. please make a video on laravel 8 sessions with database connection login page
Answer of Interview Question: if it do not find the index value of the language array then it will check in the other language or default language and print it out there
easy to understand. thanks
Welcome
@@codestepbystep btw, i have a question, how to implementation in many page? (Full of website), with using button language choice?
@@salsabilaemma7569 using
English
Bangla
Korean
in your profile.blacde.php
@@salsabilaemma7569 just create anchor tag of those language, u will need dropdown. and in the last section , he described how to call from route. use that , simple
how to adjust the localization depend on device language ?
awesome
Thank you (감사합니다.)
How to apply locaizaion in database content
Спасибо тебе мой индийский брат
Interview Question:
When we missed out on any of the keys from any lang files, then it will return the default language instead.
what about data from database
when we forget add any content, then it will take default content.
how about if the content to be translated is dynamic
same question
thanks
if we dont give or miss any key, by default its taking English language
Yes
How we can set language ip Address
but mera hi url ke saath toh run hora h dynamic m nahi hora hindi m convert
if we dont put any key translation so by default it takes english language.
Who to handle localization for database data display.
First get data in controller and send them in view. İn view set coming data in anchor tags as done in video
@@bucky31452 but database data is dynamic not fix type then ?
If not exists i think it will show default language
sir g ap ny 20 k bad sath hi english ma shuru kr diyaa oper sy ja rha sab
bhai aap hindi to english kyu aa gaya, bhai please video hindi ma hi banavo.
thanks sr
maintaining translations manually is not a convinient approach I guess
Sir, what if lot of language is there to add in site ?
We need to add all languages
.goog-logo-link {
display:none !important;
}
.goog-te-gadget {
color: transparent !important;
}
.goog-te-banner-frame.skiptranslate {
display: none !important;
}
body {
top: 0px !important;
}
//
function googleTranslateElementInit() {
new google.translate.TranslateElement({includedLanguages : 'hi,kn,en,te'}, 'google_translate_element');
}
@@laughitout9299 what ia that bro????
@@hubesh716 google translate for the site
bhai aap hindi me best ho teaching ke liye - why u turn into the english lang?
Bhai sayd kisi ko hindi na aati ho 🙂
@@codestepbystep lekin sir apne series ka title to ye rakha hai "Laravel 8 tutorial in hindi"
1-2 video galti se add ho gyi hogi playlist me . M check krta hu
@@coolclips2992 First he is giving us free tutorials So we should learn to manage or adjust minor problems bro.
I close programming videos as soon as I hear an Indian accent
today english sir😅
bhai yr itna video hindi mai bana diya or ab english
This is a very long process mean if I have 20 pages in a website and I want to convert it to 5 different languages than I have to make more than 100 file.
Damn this method is not good at all
I think you'll need 25 files total. 20 files for website pages and 5 files for 5 languages. because it's not like he named the translation files to profile.php because it'll be used in profile.blade.php. He mentioned in the video(after 3:55) that you can use any name.
.goog-logo-link {
display:none !important;
}
.goog-te-gadget {
color: transparent !important;
}
.goog-te-banner-frame.skiptranslate {
display: none !important;
}
body {
top: 0px !important;
}
//
function googleTranslateElementInit() {
new google.translate.TranslateElement({includedLanguages : 'hi,kn,en,te'}, 'google_translate_element');
}
profile.contact print
Expression in English is not up to mark! Continue in Hindi.
i got the error profile.welcome
i mean when im delete list or about(profile,about) like this.its not print the key values.
Man u need to reduce the use of 'the' word in your lecture
thanks