Language Switcher (Dropdown) in Next.js | i18n w/ next-intl & App Router

preview_player
Показать описание


00:00 Language Switcher Demo
00:44 Setup Overview with next-intl
04:14 Handling of the Locale (Locale Cookie)
06:03 Language Switcher Component
07:45 Bonus: Colocating i18n Files for Better Organization
Рекомендации по теме
Комментарии
Автор

Thanks Lucas i really appreciate your work

maksabagency
Автор

thank you so much bro, helped me alot. keep up the good work👍

Kai-enxs
Автор

Hey! This is a really useful video, no bs, thanks!
My only concern is that some of my animations are being re-triggered when the page refresh happens.
I assume that is more of a framer-motion config issue than your implementation's but I'd like to ask if you had faced anything similar? (For example: on top of the page I have a full width navbar, and scrolling down it becomes a floating navbar with reduced width, this animation is being triggered when changing the language, this looks clunky.)

kristoth
Автор

Hey could u please include clerk into middleware

zqgAFf
Автор

Could you please share this demo git repo? I am getting issues while creating aboutus and contact page. How to do navigation?

mohdsahil
Автор

With this setup seo will not work right

kushalmalviya
Автор

I have an quesiton about SEO. You use "never", but is it good idea for google seo? How can i provide then links for different languages eg. es, en-us etc. In my opionion there is a need to have a locale in url if we want use page with seo. Am i right?

guineapigtaco
Автор

i dont understand why react developers love to make things harder lol

codecret