Laravel 10 | Localization (Multiple Language support) in English

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 31

  • @jamalmousa-j6c
    @jamalmousa-j6c 11 месяцев назад

    thank you brother. you are amazing, confident, clear, organized and direct to point. 😊

    • @CodeShotcut
      @CodeShotcut  11 месяцев назад +1

      Thank you bro means a lot :)

  • @fatememahdavi-s9l
    @fatememahdavi-s9l 3 месяца назад

    thank you :)

  • @afnanjaved1986
    @afnanjaved1986 Год назад

    THANK YOU !! your explanation is simple and to the point !! amazing video :) learned alot !!

  • @ZAKIRKHANDev
    @ZAKIRKHANDev 10 месяцев назад

    Good job boy

    • @CodeShotcut
      @CodeShotcut  10 месяцев назад

      Thank you bro means a lot :)

  • @jaibharatmata8921
    @jaibharatmata8921 9 месяцев назад

    Brother agar file json type ki ho tab kaise use karenge ?

    • @CodeShotcut
      @CodeShotcut  9 месяцев назад

      Agar yahan comment krkay explain krta tu bht time lagta is liye yeah blog try karo : laraveldaily.com/lesson/multi-language-laravel/php-json-trans-underscores

    • @jaibharatmata8921
      @jaibharatmata8921 9 месяцев назад

      @@CodeShotcut I have done 👍

    • @CodeShotcut
      @CodeShotcut  9 месяцев назад

      @@jaibharatmata8921 Great job :)

  • @gungros9558
    @gungros9558 Год назад

    so if I want to translate my site into three different languages I have to create three folders and then create a file in each folder and enter the translations for each language by hand ? that's a lot!

    • @CodeShotcut
      @CodeShotcut  Год назад +1

      Correct, that's what we need to do. I tired to check for other packages as well but this was the best shot available.
      I will recommend you to try it on your own and you will get to know that this package was really helpful.

  • @jamalmousa-j6c
    @jamalmousa-j6c 11 месяцев назад

    hello boss. all applied well and the translation is very easy. thanks for you. could you help me to apply the change of page direction RTL and LTR according to used language? thanks again

    • @CodeShotcut
      @CodeShotcut  10 месяцев назад +1

      Sorry brother i didn't get it.

    • @jamalmousa-j6c
      @jamalmousa-j6c 10 месяцев назад

      @@CodeShotcut i mean the change of the page direction from right to left if the arabic language used or left to right if the language used is english

    • @CodeShotcut
      @CodeShotcut  10 месяцев назад +1

      @@jamalmousa-j6c As you may know we can do that manually but it will take some serious amount of time. There are multiple packages available for the localization and i am looking for the best option available. Once I have it i will create a video on that as well and you will receive an update.

    • @jamalmousa-j6c
      @jamalmousa-j6c 10 месяцев назад

      ​@@CodeShotcut thank you for the concern i wish we can find a completed localization package for laravel.

    • @CodeShotcut
      @CodeShotcut  10 месяцев назад +1

      @@jamalmousa-j6c
      I have explored various localization packages but have not come across any that allows dynamic updates to the database. Currently, I am not aware of any package that supports this functionality. However, here's a workaround you can implement in the meantime.
      Choose a localization package that suits your needs and, at the backend, utilize the Google Translate package. When creating data, for instance, a blog title in English like "First Blog," use AJAX to send the data to the controller. Translate the text using Google Translate and return it to be stored in the title in French field " Premier blog ". Save both language versions of the data in the database, possibly using JSON.
      Here's a simplified example:
      Title in English: "First Blog"
      Upon completing the English title field, send the data via AJAX to the controller.
      Translate the text using Google Translate.
      Return the translated text to be stored in the title in French field " Premier blog ".
      Save both the English and French versions of the data in the database, possibly using JSON.
      When displaying the data, retrieve and show the content based on the user's locale.
      I hope this helps!

  • @pkbissyer7751
    @pkbissyer7751 Год назад

    Sir kya aap video embed pr koi video bna skte ho kase you tube url ko data base e save kr ke usko front end ke detail page pr show kr skte h dynamically
    mtlb alg alg post pt alg alg video dekhe url se jo user ne dala ho

    • @CodeShotcut
      @CodeShotcut  Год назад +1

      Bro me try kronga kay me video banao is pr.
      Btw yeah easy hona chye for ex : database me aik column add kro jiski type hogi tex, phr youtube video ka embed code us me save krlo or phr usko database se retrieve krky simply display krdo.
      Menay try nai kiya pr hona asa hi chye minor differencfe hosktay hain

    • @pkbissyer7751
      @pkbissyer7751 Год назад

      @@CodeShotcut wase bina database ke video chl rha h lakin jo link database se retrieve kr rhe wo nhi chl rha
      mane video dekha you tube pr iss topic pr usme package bta rakha h Cohensive/ oembad isko install kro lakin unno ne thk se nhi bta rakha
      Unke video me post kr alag alag detail page pr alag alag video chl rhe h lakin mare me nhi chle koi error bhi nhi aha rhe

    • @CodeShotcut
      @CodeShotcut  Год назад

      @@pkbissyer7751 bro jub package use kr rahay ho tu phr uski docs ko follow kro pata chal jyega kiya issue hai

  • @matrixaio10
    @matrixaio10 Год назад

    please make Laravel Dynamic Localization mcamara tutorial.

    • @CodeShotcut
      @CodeShotcut  Год назад +1

      I will look into it bro give me some time to come up with the easiest solution.

    • @matrixaio10
      @matrixaio10 Год назад

      @@CodeShotcut thanks bro. and with dynamic multiple currency use in laravel ecommerce site make also tutorial.

    • @matrixaio10
      @matrixaio10 Год назад

      @@CodeShotcut thanks bro. and with dynamic multiple currency use in laravel ecommerce site make also tutorial.

    • @CodeShotcut
      @CodeShotcut  Год назад

      I will try bro @@matrixaio10

  • @myosotisalderson
    @myosotisalderson Год назад

    Thank you