Multi-Language Support in Angular: A Guide to Localization and Internationalization

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ส.ค. 2023
  • Internationalization, often referred to as i18n, is a strategic process that involves designing and preparing your project to function effectively across a wide range of global locales. This approach ensures that your project can cater to diverse linguistic and cultural preferences, making it more accessible and user-friendly for people worldwide.
    Localization, on the other hand, goes a step further by tailoring specific versions of your project to suit different locales. This process includes extracting text for translation into various languages and formatting data to align with the preferences of a particular locale. A locale represents a distinct region where a specific language or language variant is spoken, encompassing countries, territories, and even specific geographical areas. The locale dictates how various elements are presented and understood, including factors such as measurement units (such as date, time, numbers, and currencies) and translated names (like languages, countries, and time zones).
    GitHub: github.com/funOfheuristic/loc...
    Some more playlists:
    Create PWAs: bit.ly/359BXpK
    NgRx: bit.ly/2Qu0Ucu
    Performance optimization: bit.ly/3fFa1Q8
    RxJs: bit.ly/3hytr8o
    Angular Tutorial: bit.ly/2Tnwk1t
    Dashboard with chart.js: bit.ly/3c9Jd85
    Application Development: bit.ly/398w7Gf
    Upload File to server: bit.ly/3ccsjWd
    Data Structure and algo: bit.ly/3c8b7Bh
    Discord: / discord
    Slack: bit.ly/2RXPcEK
    You can support me on Patreon: / funofheuristic
    Equipment used for Video (India links):
    Headphone (ATH M50X): amzn.to/3xDcSQK
    Microphone (AKG D5): amzn.to/3b1gi5R
    Audio Interface (EVO 4): amzn.to/327tnGJ
    Camera(Canon 200D): amzn.to/3ja1Pr9
    Thanks for watching...

ความคิดเห็น • 32

  • @salimsulaiman1909
    @salimsulaiman1909 5 หลายเดือนก่อน +1

    Thank you very much. Got to learn i18n and implemented it at work 👌👌

  • @abinashsamal6298
    @abinashsamal6298 5 หลายเดือนก่อน +1

    Thank you but here you have to run the app specifically for required languages; what are scenarios when you can run the app once and can change the language in the ui?

  • @user-cy1mc4yk2l
    @user-cy1mc4yk2l 11 หลายเดือนก่อน

    Thanx man, you always explain nice and easy

  • @margoni5851
    @margoni5851 8 หลายเดือนก่อน

    You saved me, thank you so much

  • @dingmarius
    @dingmarius 2 หลายเดือนก่อน

    How to translate text from api (normally like string config) in angular app?

  • @vsh-torch
    @vsh-torch 11 หลายเดือนก่อน

    Great. Thank you

  • @Chiving
    @Chiving 9 หลายเดือนก่อน

    Good video, thanks

  • @user-ge7hx8fg5f
    @user-ge7hx8fg5f 6 หลายเดือนก่อน

    How to use different route

  • @ultrawhiff
    @ultrawhiff 19 วันที่ผ่านมา

    Hi, please guide me if you know.
    I am using angular 17, when i do ng-serve, it says An unhandled expectation occurred: Requested locale ''es-CL' is not defined for the project. I even declared localize array in options

  • @user-ge7hx8fg5f
    @user-ge7hx8fg5f 6 หลายเดือนก่อน

    how to use multiple route

  • @mohammadrezamrg9380
    @mohammadrezamrg9380 6 หลายเดือนก่อน +1

    We have to define locale in angular.json file, So we cant use dynamic translation from backend

    • @FunOfHeuristic
      @FunOfHeuristic  6 หลายเดือนก่อน

      This is helpful for static content, for dynamic content you should use some translation service.

  • @serpolama3077
    @serpolama3077 4 หลายเดือนก่อน

    please can you tell me, how can I switch to multiple languages through select option from front end ?

    • @FunOfHeuristic
      @FunOfHeuristic  4 หลายเดือนก่อน +1

      In this way different languages will come with different bundles so they are different applications all together so you can just route to the corresponding language bundles.

  • @MultiWarrr
    @MultiWarrr 11 หลายเดือนก่อน

    Thanks alot

  • @user-gx4js4oh8r
    @user-gx4js4oh8r 10 หลายเดือนก่อน

    Thanks but How can we change dynamic value.

    • @FunOfHeuristic
      @FunOfHeuristic  10 หลายเดือนก่อน +1

      To translate data on the fly, you can make use of the Google Translation API. However, it might not always provide accurate results. The best alternative in such cases is to employ a dedicated translation service that can be verified by a human for correctness.

  • @user-iq334
    @user-iq334 9 หลายเดือนก่อน

    How do you switch languages say by a dropdown menu?

    • @jasonr9565
      @jasonr9565 9 หลายเดือนก่อน

      same question here

    • @FunOfHeuristic
      @FunOfHeuristic  9 หลายเดือนก่อน +1

      Hey, in this case, since all the languages are different applications, after they're built, you can simply redirect the user to the required local site. For example, if you host three languages, you'll have three applications in the "dist" folder, and you can link to them from a dropdown menu.

    • @jasonr9565
      @jasonr9565 9 หลายเดือนก่อน +1

      @@FunOfHeuristic i was wondering because i do have two dist folders with the both languages, but i don't know how i can add them to the options of the dropdown

    • @user-iq334
      @user-iq334 9 หลายเดือนก่อน

      That would work, but I was thinking of a way to test it during development@@FunOfHeuristic

  • @robertomessa9126
    @robertomessa9126 8 หลายเดือนก่อน

    what happens when you update your app? if regenerate, you loose it all?

    • @FunOfHeuristic
      @FunOfHeuristic  8 หลายเดือนก่อน

      That's why we have 2 files in this case, if you will support 3 language you will 3 file one is auto generated and other two are for two languages and English is default.

    • @robertomessa9126
      @robertomessa9126 8 หลายเดือนก่อน

      @@FunOfHeuristic the work made in the other 2 is lost?

    • @FunOfHeuristic
      @FunOfHeuristic  8 หลายเดือนก่อน

      @@robertomessa9126 no it will not

    • @robertomessa9126
      @robertomessa9126 8 หลายเดือนก่อน

      @@FunOfHeuristic how so? the default will be regenerated, the other not

    • @FunOfHeuristic
      @FunOfHeuristic  8 หลายเดือนก่อน

      Only the default will be generated and you need to copy the new generation to your respective translation file and add transitions text inside it.
      If you notice the default one it doesn't has target we need to add the target manually

  • @ashrafjefrizin4630
    @ashrafjefrizin4630 8 หลายเดือนก่อน +3

    i dont prefer this official localize from Angular. ngx-translate approach more clean imo.

    • @jahsan4471
      @jahsan4471 7 หลายเดือนก่อน

      does ngx-translate support RTL. Also any good latest tutorial on that?Thanks

  • @GKT196
    @GKT196 วันที่ผ่านมา

    Hindi wala bhi bna dete 😂

  • @user-cm3mg5hb8i
    @user-cm3mg5hb8i 6 หลายเดือนก่อน

    are u guju