The basics - Internationalization with Next.js in 2024 (app router)

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

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

  • @davidlintin
    @davidlintin 8 месяцев назад +2

    Great tut - Thanks Paul! - Not sure if the other videos are out yet (will have a look) - Just a quick one... What would be the best way to store the preferred locale in the cookies, so a returning user will not need to keep updating their lang preferences, then maybe in middleware, redirect based on the cookie?

    • @rendrdotio
      @rendrdotio  8 месяцев назад +1

      Hey sorry, I’m not getting notifications in my RUclips app, just saw your comment.
      So we used to manage this with our own customizations but you end up running into edge cases like “person is on a post, changes language then hits the back button”, it messes with at lot of your flows, when you’ve already got logic for other cases. Not insurmountable but also not worth it when you can just throw one of the popular frameworks we reviewed in video #2 at the problem. The short version: next-intl wins for app router projects in our opinion.

    • @davidlintin
      @davidlintin 8 месяцев назад

      @@rendrdotio thank you for your response. You’ve made some very valid points. As I’m working on an MVP I’ll leave this out for now. But I really appreciate your insight. Have a great day/night depending on your locale 😉

    • @rendrdotio
      @rendrdotio  8 месяцев назад +1

      @@davidlintin likewise and good luck with your MVP.

  • @Pavel-wj7gy
    @Pavel-wj7gy 2 месяца назад +1

    Good stuff! Thank you for putting out content like this one. Nextjs youtubers tend to not talk about localization extensively. Maybe they think it's not sexy, I dunno, but it certainly helped me understanding the basics.

  • @sgruhier
    @sgruhier 7 месяцев назад +1

    Awesome video. Very clear and detailed. So many videos on that subject on youtube that aren't at this level! 👏

    • @rendrdotio
      @rendrdotio  7 месяцев назад

      Thank you!

    • @sgruhier
      @sgruhier 7 месяцев назад

      @@rendrdotio I implemented next-international, I like it. Thanks for the suggestion and the video.

    • @rendrdotio
      @rendrdotio  7 месяцев назад

      Yep, it's tough to argue with. We went with it for our site as well.

  • @OsamaaSayed
    @OsamaaSayed 7 месяцев назад

    Great explanation i love this series it does so much clarification thank you👏🏻♥️

    • @rendrdotio
      @rendrdotio  7 месяцев назад

      Thanks! Really glad it’s helpful.

  • @videosDiego201
    @videosDiego201 Месяц назад

    What is the extension you use in vscode so that the .json appears with those colors?

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

    Well done Paul!

  • @muhammadsajjad9769
    @muhammadsajjad9769 6 месяцев назад

    Thankyou Sir Perfect Explaination

    • @rendrdotio
      @rendrdotio  6 месяцев назад

      Too kind, thank you!

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

    Great job!

  • @ruasrr
    @ruasrr 3 месяца назад

    Very cool video, but one question, why do not use useContext or something similar for the dictionary?

  • @videosDiego201
    @videosDiego201 Месяц назад

    I was watching the video and I had a doubt, why not use next-intl?

  • @aipromptsuk
    @aipromptsuk 4 месяца назад

    how we can update urls also?

  • @Dzzjio69
    @Dzzjio69 7 месяцев назад

    How do i store that in cookies? So when i go to other page the value is stored somewhere and it doesnt change back to en.

    • @rendrdotio
      @rendrdotio  7 месяцев назад +1

      I've just pushed an example here (the repo from video #2) that shows how you can do this without cookies: github.com/rendrdotio/i18n-libraries/commit/0c8015582f68583e5ca7a2e733a44b7535b26172

    • @Dzzjio69
      @Dzzjio69 7 месяцев назад +1

      @@rendrdotio Thanks! Good luck.

  • @aymanjaber2585
    @aymanjaber2585 5 месяцев назад

    This could have been 5 minutes long. A lot of writing code, that we don't need to watch.

    • @ruasrr
      @ruasrr 3 месяца назад

      You were not forced to watch I guess. :D