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

КОМЕНТАРІ • 77

  • @codestepbystep
    @codestepbystep  2 роки тому +6

    please support me by subscribe, like and comment :) thank you

  • @rojan11
    @rojan11 3 роки тому +13

    Interview Question:
    When we missed out on any of the lists from any files, then it will return the default language instead.

  • @dota2rampagetracker
    @dota2rampagetracker Рік тому +4

    In Laravel 10, lang directory is not present by default. Use 'php artisan lang:publish' command if it's missing

  • @kaziovesh9798
    @kaziovesh9798 4 роки тому +4

    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?

  • @MonirulIslam-sg7oh
    @MonirulIslam-sg7oh 3 роки тому +2

    Just love this series, hats of Anil

  • @AshishPatel-xr2pb
    @AshishPatel-xr2pb 4 роки тому +6

    ❤️❤️❤️ Lovely ❤️❤️❤️
    What an explanation Buddy,
    Keep on uploading these kind of videos please

  • @premisitgroup-ltd.3070
    @premisitgroup-ltd.3070 3 роки тому +3

    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.

  • @ABHISHEKKUMAR-ne3rk
    @ABHISHEKKUMAR-ne3rk 4 роки тому +1

    Agar,multiple pages ka karna hoga to pure page ko particular language me convert karna hoga..

  • @samirranderiya4868
    @samirranderiya4868 Рік тому

    Is that possible to change default file path resources/lang to define ?

  • @rakeshsingh1984
    @rakeshsingh1984 8 місяців тому

    please create one video on gate,policy and laravel role-permission

  • @user-fk8wf4wg4y
    @user-fk8wf4wg4y Рік тому +1

    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

  • @vishalkumar-pk7uu
    @vishalkumar-pk7uu 2 роки тому

    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

  • @raghavendrakesari337
    @raghavendrakesari337 3 роки тому

    bhai shuru me mushkil ho rha tha smjhne me But ab sahi hai

  • @ashishbhandari8555
    @ashishbhandari8555 Рік тому

    when we forget any list it will not throw error instead display missed list in English language.

  • @sumanprajapati1283
    @sumanprajapati1283 3 роки тому

    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 ?

  • @uzairtariq4152
    @uzairtariq4152 2 роки тому

    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?

    • @jahidhasan-el5lu
      @jahidhasan-el5lu Рік тому

      You can store both languages in the database and retrieve what is needed.

    • @shoaibasad4926
      @shoaibasad4926 Рік тому

      How we can put dynamic data in locale?

  • @yogeshchavda8284
    @yogeshchavda8284 2 роки тому

    How to make dynamic data on localisation please make video

  • @Vikaskumar-ur5di
    @Vikaskumar-ur5di 2 роки тому

    if you are not given parameter like profile/en profile/hi just put profile not working, please give the soultion

  • @Muhammadwaqas-jn2rr
    @Muhammadwaqas-jn2rr 3 роки тому

    it can display the this key in locale language

  • @codingstudio6195
    @codingstudio6195 2 роки тому

    Hii.. please make a video on laravel 8 sessions with database connection login page

  • @idrees7861000
    @idrees7861000 3 роки тому +1

    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

  • @salsabilaemma7569
    @salsabilaemma7569 3 роки тому +2

    easy to understand. thanks

    • @codestepbystep
      @codestepbystep  3 роки тому

      Welcome

    • @salsabilaemma7569
      @salsabilaemma7569 3 роки тому

      @@codestepbystep btw, i have a question, how to implementation in many page? (Full of website), with using button language choice?

    • @fayekhossain4496
      @fayekhossain4496 3 роки тому

      @@salsabilaemma7569 using
      English
      Bangla
      Korean
      in your profile.blacde.php

    • @RAVIRAJLADHA
      @RAVIRAJLADHA Рік тому

      @@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

  • @hassanalnajjar1744
    @hassanalnajjar1744 3 роки тому

    how to adjust the localization depend on device language ?

  • @efthakharbin5803
    @efthakharbin5803 2 роки тому

    awesome

  • @요리하는몽찬
    @요리하는몽찬 3 роки тому +1

    Thank you (감사합니다.)

  • @neethuah2853
    @neethuah2853 2 роки тому

    How to apply locaizaion in database content

  • @AhmadjoniMuhamad
    @AhmadjoniMuhamad 3 роки тому +1

    Спасибо тебе мой индийский брат

  • @sitararafaqat
    @sitararafaqat Рік тому

    Interview Question:
    When we missed out on any of the keys from any lang files, then it will return the default language instead.

  • @tibebugoa4817
    @tibebugoa4817 Рік тому

    what about data from database

  • @AhsanHabib-vt2dq
    @AhsanHabib-vt2dq 2 роки тому

    when we forget add any content, then it will take default content.

  • @requestmusekwa8757
    @requestmusekwa8757 3 роки тому

    how about if the content to be translated is dynamic

  • @erriada-com
    @erriada-com Рік тому

    thanks

  • @saikumarkandikonda431
    @saikumarkandikonda431 4 роки тому +3

    if we dont give or miss any key, by default its taking English language

  • @mohammadtariqu3911
    @mohammadtariqu3911 2 роки тому

    How we can set language ip Address

  • @ruheensumal3147
    @ruheensumal3147 3 роки тому

    but mera hi url ke saath toh run hora h dynamic m nahi hora hindi m convert

  • @poojaparmar2109
    @poojaparmar2109 3 роки тому

    if we dont put any key translation so by default it takes english language.

  • @muditmohantyagi
    @muditmohantyagi 3 роки тому

    Who to handle localization for database data display.

    • @bucky31452
      @bucky31452 3 роки тому

      First get data in controller and send them in view. İn view set coming data in anchor tags as done in video

    • @muditmohantyagi
      @muditmohantyagi 3 роки тому

      @@bucky31452 but database data is dynamic not fix type then ?

  • @MDSABBIR-we3pc
    @MDSABBIR-we3pc 3 роки тому +1

    If not exists i think it will show default language

  • @falaksherdev
    @falaksherdev 3 роки тому

    sir g ap ny 20 k bad sath hi english ma shuru kr diyaa oper sy ja rha sab

  • @patelkashyap1262
    @patelkashyap1262 Рік тому

    bhai aap hindi to english kyu aa gaya, bhai please video hindi ma hi banavo.

  • @ivnstudios6135
    @ivnstudios6135 3 роки тому

    thanks sr

  • @darkSlayerx77
    @darkSlayerx77 Рік тому

    maintaining translations manually is not a convinient approach I guess

  • @vrushabhkale4225
    @vrushabhkale4225 4 роки тому

    Sir, what if lot of language is there to add in site ?

    • @codestepbystep
      @codestepbystep  4 роки тому +2

      We need to add all languages

    • @laughitout9299
      @laughitout9299 3 роки тому

      .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');
      }

    • @hubesh716
      @hubesh716 2 роки тому

      @@laughitout9299 what ia that bro????

    • @laughitout9299
      @laughitout9299 2 роки тому

      @@hubesh716 google translate for the site

  • @milinsuthar8350
    @milinsuthar8350 3 роки тому +1

    bhai aap hindi me best ho teaching ke liye - why u turn into the english lang?

    • @codestepbystep
      @codestepbystep  3 роки тому +1

      Bhai sayd kisi ko hindi na aati ho 🙂

    • @coolclips2992
      @coolclips2992 3 роки тому

      @@codestepbystep lekin sir apne series ka title to ye rakha hai "Laravel 8 tutorial in hindi"

    • @codestepbystep
      @codestepbystep  3 роки тому

      1-2 video galti se add ho gyi hogi playlist me . M check krta hu

    • @jaygondalia6304
      @jaygondalia6304 3 роки тому +2

      @@coolclips2992 First he is giving us free tutorials So we should learn to manage or adjust minor problems bro.

  • @aronzimas5660
    @aronzimas5660 3 роки тому +1

    I close programming videos as soon as I hear an Indian accent

  • @shawaiziqbal3965
    @shawaiziqbal3965 27 днів тому

    today english sir😅

  • @mrsam8728
    @mrsam8728 4 роки тому

    bhai yr itna video hindi mai bana diya or ab english

  • @ayushbagwari3496
    @ayushbagwari3496 3 роки тому

    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

    • @SyeedChowdhury
      @SyeedChowdhury 3 роки тому

      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.

    • @laughitout9299
      @laughitout9299 3 роки тому

      .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');
      }

  • @laxmanrawat3085
    @laxmanrawat3085 4 роки тому

    profile.contact print

  • @AmitKumar-mo1yy
    @AmitKumar-mo1yy 3 роки тому

    Expression in English is not up to mark! Continue in Hindi.

  • @Respect-ee2ur
    @Respect-ee2ur 3 роки тому

    i got the error profile.welcome

    • @Respect-ee2ur
      @Respect-ee2ur 3 роки тому

      i mean when im delete list or about(profile,about) like this.its not print the key values.

  • @dwaipayanbhadra1765
    @dwaipayanbhadra1765 3 роки тому

    Man u need to reduce the use of 'the' word in your lecture

  • @asimabusallam3147
    @asimabusallam3147 3 роки тому

    thanks