React Multi Language App - i18next Tutorial

Поділитися
Вставка
  • Опубліковано 20 жов 2024

КОМЕНТАРІ • 203

  • @EmilyNilsen
    @EmilyNilsen 2 роки тому +24

    This is by far the most professional and practical video I have seen for front-end development. Everything worked. Thank you so much for your time, effort and flawlessly clear explanations.

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

    It's truly astounding how easy the internet makes learning these days. Thanks for the tutorial, my guy.

  • @amirreza-dev
    @amirreza-dev 3 роки тому +22

    Thank you so much for this incredible video, people like you makes programming beautiful and enjoyable
    This tutorial really helps me, thank you

  • @lardosian
    @lardosian 3 роки тому +8

    Localisation was my previous career, I mostly worked in audio recording voice over sessions and had 2 lead roles in Microsoft on xbox360 games. Was nice working with so many languages and people from all over the world, made good friends too.

    • @sureshmakwana8709
      @sureshmakwana8709 2 роки тому +1

      People getting error for flag icons do this while importing it in index.js
      flag-icons* instead of flag-icon.min.css
      So it should look like this
      import "flag-icon-css/css/flag-icons.min.css
      As Some deprecation issue has happened with this npm package.

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

      ​@@sureshmakwana8709 thanks bro, you solved my problem

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

    i know this is late, beside the core of this video i think i have answers for many quistions in react itself , truly from long time i didn' t see heavy technical video and in same time so exciting. thanks for being that much profissionl and honest. u saved me a week of figuring out how to localize my application.

  • @정주영-f1m
    @정주영-f1m 2 роки тому +3

    Hey, your lecture was the best among the lectures I've seen these days. It doesn't just teach you how to use it, but the lecture that understands how it works and applies it is so cool! I hit subscribe and like.

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

      안녕하세요. 외국인 프로그래머가 한국에서 직장을 구하는 것이 어려워요?

  • @feelSmoothie
    @feelSmoothie 2 роки тому +1

    By far the most enjoying feeling following you through. Thanks for this awesome content which you provide for free.

  • @fabianpena90
    @fabianpena90 3 роки тому +6

    This is absolutely amazing!!! this will help me a lot with my current job. You did an amazing job Muchas gracias!!!!!

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

    I searched a lot of videos, but this one is definitely the best, your arabic is pretty correct by the way😉

  • @poppin_party
    @poppin_party Рік тому +2

    Thank you so much, really need these types of videos that explain things and get right to the point.

  • @ahmadsalah1721
    @ahmadsalah1721 2 роки тому +1

    what a great tutorial❤, the best way to learn is by making the mistake and then correct it which is what you did there but in a smooth way.

  • @akbarjonabdulkhamidov9752
    @akbarjonabdulkhamidov9752 2 роки тому +1

    like everyone else i also want to say thank you for spending your time on creating this video. i learned much from this video and like your logical thinking most hence subscribed also!

  • @VishalKumar-fw5fz
    @VishalKumar-fw5fz 3 роки тому +1

    I am currently watching your MERNG series. I will watch it after finishing it.
    By the way, great work.

  • @BasselAhmed-g9c
    @BasselAhmed-g9c 9 місяців тому +1

    thanks a lot man for your efforts, it really helped me

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

    Hi ,,You are a saviour man.Nowadays i dont see you.We have missed your tutorials

  • @sureshmakwana8709
    @sureshmakwana8709 2 роки тому +2

    People getting error for flag icons do this while importing it in index.js
    flag-icons* instead of flag-icon.min.css
    So it should look like this
    import "flag-icon-css/css/flag-icons.min.css
    As Some deprecation issue has happened with this npm package.

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

    Awesome tutorial. I did it in typescript and had to do some modification, but it worked perfectly. :)

    • @rezamohammadi1210
      @rezamohammadi1210 5 місяців тому +1

      Hello, How you did it,?
      I really need your help please

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

    Awesome video!! Thank you and a shout out from Brazil!! 😁

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

    Best tutorial on React i18next. Thanks for your time in providing this explanation.

  • @sinaolfati6599
    @sinaolfati6599 2 роки тому +1

    Bro, you just killed it!

  • @crakton
    @crakton Рік тому +2

    If I may ask. How do I get this done by translating the content of an ecommerce page dynamically without having a saved locale JSON files for all the language supported by the ecommerce website. Because I understand that for each content translated there is an equivalent JSON file with the translation saved in the project public directory. Must I have to have all the locale JSON files for all the text contents in the website? Is there a dynamic way to achieve this like the way google page translator?

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

    Great tutorial, easy to follow and everything works, thanks man 😃

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

    Lifesaver! great content man, keep going! +1 sub

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

    i search everything but i did not find something like this. Thank you so much

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

    I've already did the localization by my own, I'm here to spy your switcher. LOL . thx for the teaching

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

    Thanks for the video. This is the best i18next tutorial on UA-cam

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

    Wow man!
    seriously what i have looking for AIO video thanks

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

    Nice tutorials, I'm new to react but with your description I'm learning a lot.
    how can you insert html code into the en.json file, eg line break tag

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

    ​you did a really good job great content!

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

    how can I iterate array elements to unrodered list with map
    {t("text", { returnObject: true }).map((text, country_code) => (
    {text}
    ))}
    when I do this it gives me t(...).map is not a function

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

    I just can not believe that those big websites that have multi languages are using this technique, that would take years and a lot of coding to do it

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

    what could be better after the typeorm series . . . this guy rocks

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

    Bro te amo, this was exactly what I needed!!

  • @mojeedgeorge7355
    @mojeedgeorge7355 2 роки тому +1

    please can someone tell me how to link it to a specific page

  • @m-qz2mi
    @m-qz2mi Рік тому

    you are perfect . the most useful video I have seen on UA-cam

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

    Hello, thank you for this amazing tutorial. I am facing a situation that after refreshing the browser, the language setting is not persistent with a specific language. I checked my setting for order key in the detection object, the first priority is "cookie".

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

      Maybe you've setup your browser to not hold cookies?

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

    This is a great video, however I am running into issues deploying localization using your technique. I am using Vite with Reactjs and when I go to deploy this project, it seems to not be able to find the translation.json files. Am I missing something?

  • @captainsaleh3444
    @captainsaleh3444 9 місяців тому +1

    the minimum thing I can say it's really awesome

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

    If i just finished my work and save, the format is .softp , is tNice tutorials type of file compatible with other DAW? like ableton or LogicProX for

  • @RajnishKumar-hi4lj
    @RajnishKumar-hi4lj Рік тому

    Absolutely beautiful tutorial!!!

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

    Ok Fine! Take your 177'th like!!
    Now kidding aside, that was one hell of a tutorial.
    No wonder this video has 0 disliked (100% positive).
    Thanks you so much for it. It helped me a ton!

  • @loverphp5605
    @loverphp5605 2 роки тому +1

    thanks for this nice tutorial i have notice the when change language through the path it is conflicting with react-router-dom

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

    thank you soooo much that was incredibly helpful!

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

    You did a really good job great content ! Keep it up, please

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

      I will do, thank you

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

    Very good but when you change language with selector it doesn't automatically change de fr, en, in the path with the domain. Any idea to do that ?

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

    I do not understand the remote point of this library. If you need to translate manually, what is the exact point of using this?

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

    i get the issue of the button saying [object Object]English and again for the other language. Also the flag icon thing doesn't seem to work.

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

    thank you i wish you'll get more subs don't stop...

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

      Thank you, I'll never stop :)

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

      @@Classsed Remember this word my friend!
      Great work. Keep it up.
      I have one idea for you. If you can and if you like, make live sending stream from server to client via socket.io through headers example mp4 or mp3 data, or like youtube live stream video.

  • @user-ov1ps7go4m
    @user-ov1ps7go4m 3 роки тому

    Hello!. I apologize, however, when I tried to do the document.querySelector('html') and also put "fr" inside index.html it still did not change into french

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

    Every time I select a translation it doesn't automatically refresh the app. I have to manually refresh the app to get an RTL look. Any solution for this?
    Also, what if I want to print the current language name with the globe icon? And remove from the list of available languages? This removes the hassle of disabling it and will also look good as the empty globe doesn't represent what language the app is currently loading

  • @tube-rp1nb
    @tube-rp1nb 2 роки тому

    thank you.this is the best tutorial i have got

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

    Thank you so much please i want to know if in production the server will able to read the loadPath ("the path where our json files are stored in the public folder ")? and thanks again

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

    Very informative and to the point🚀

  • @dorin6880
    @dorin6880 2 роки тому +1

    great tutorial, thx a bunch!

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

    You are awesome. I wish you a bright future. Thanks

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

    Does this backend configuration loadPath /assets/locales.... will work when my application is in beta or prod environment?

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

    Brooooooooo you helped me alot, I am so grateful for you

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

      you're very welcome bro, glad to hear that :))

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

    im getting an error on the second line:
    const currentLanguageCode = cookies.get('i18next') || 'en'
    const currentLanguage = languages.find(1 => 1.code === currentLanguageCode)
    const { t, i18n } = useTranslation();
    this one: const currentLanguage = languages.find(1 => 1.code === currentLanguageCode)
    It's red underline on => and the last )

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

    I'm getting only keys from translation.json files and not the values. Also, while trying to access a object from json file, it's giving me an error saying missing key en translation heading heading

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

    this is a great tutorial sir, thank you so much hope you make another video saving the state in redux toolkit reducer

  • @Alireza-kw6fj
    @Alireza-kw6fj Рік тому

    Great video, hope you back UA-cam soon

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

    Great tutorial. Thanks man

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

    Hi, thanks for your great video. How do I use ReactElement in translate string? For example: Hello {{val}}, nice to meet you!

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

    Thanks bro, very good and important tuturial

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

    Which gpu did you used to record this video?

  • @fatimaa-va361
    @fatimaa-va361 3 роки тому

    the best tutorial! thanks you so much)

  • @ivanbond123
    @ivanbond123 2 роки тому +1

    which vs code theme do you use?

  • @doaasolaiman2267
    @doaasolaiman2267 2 місяці тому

    Unfortunately all tutorials are only about translating a website of one single sentence and people are so happy with it. None explains this on full websites of multiple pages.

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

    Awesome! Thank you so much ❤️

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

    Very nice explanation.

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

    very nice, one thing I am wondering is how would you deal with number translation
    eg: new Intl.NumberFormat('ar-EG').format(123) -> '١٢٣'

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

    this is great
    but my react app has over 200 articles and that way on translate react app is good for small scale like text and paragraph.
    if you have over 200 articles, you want to things to be dynamically translate without having to do anything.
    do you think there are another way to do it sir
    I really love this video but I need to find a way to translate my 200 articles from english to french, spanish and arabic.
    thanks

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

    Thanks Bro much waited for

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

    Thank you! Very professional

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

    someone help pls)
    HttpApi not working, I'm getting keys of values, but the key is normal just like that :
    {
    "mainPage_title": "some text"
    }
    and i see on the page only mainPage_title when using httpApi

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

    Awesome, thank you so much for this

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

    Thank you very much. 🙇. your tutorial helps me a lot

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

    Thank you so much for those information and extra. WIth love from Viet Nam >3

  • @arfinarif2798
    @arfinarif2798 9 місяців тому

    thank you. You saved my life

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

    Great video, please how do I implement this with a blog site that is getting content dynamically from an API?

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

    awesome ! thanks for the tutorial

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

    amazing tutorial! thank you

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

    Everything works at its best!!

  • @halilrodoplu5043
    @halilrodoplu5043 11 місяців тому

    that was amazing tutorial thx for your guide and help

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

    This is the best localization video tutorial I have seen..... Top-notch content, thank you for this

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

    To download soft soft is the download free or do u have to pay for it?

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

    Great and pro job. Thanks for you hard work.

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

    It was just an awesome video .... thanks a lot !

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

    Thank you for such a helpful information

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

    Special thanks for the clean-cra! ;)

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

    Great Work Bro...You are awesome..

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

    this is very good. thanks :D looking forward for a Nest.js tutorial

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

    too many packages used just to make i18n work?

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

    What computer should i use?

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

    when I run the build to it doesn't add the localization path correctly, I need to manually edit the file and add a "./" for it to find my localization files, any ideias?

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

      Me too it doesn't find the path when I run the build
      Where should I add the ./ ?

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

      I added
      backend: {
      loadPath: '../public/locales/{{lng}}/translation.json',
      }
      - but is not working because imports outside of src/ are not supported :| still looking into this issue, no luck to making it work so far.

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

    I really appreciate you .that was awesome .I wish you the best

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

    With all these autodetection features and separate json files the translation process became noticeably slower!

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

      interesting, I didnt experience that, try changing the order / removing or adding detection factors

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

    Very useful ! Does it remain after page refresh or another component render?

  • @のざじ-k7e
    @のざじ-k7e 2 роки тому

    Awsome tutorial this very simple 😍

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

    thanks, fully understood