Next.js App Directory & i18n - Full Tutorial

Next.js App Directory & i18n - Full Tutorial

Tuomo Kankaanpää

1 год назад

59,626 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

James White
James White - 21.10.2023 12:43

can we switch the locale without refreshing?

Ответить
toktosunuulu meerbek
toktosunuulu meerbek - 20.10.2023 05:24

i did everything like u did but i have this isssue
app\[locale]\page.js[locale]/page.js doesn't have a root layout. To fix this error, make sure every page has a root layout.

can u help ne solve this please

Ответить
I will do What I wanna do
I will do What I wanna do - 15.10.2023 20:52

I implemented next-intl and it has many issues.. it feel not stable.. sometimes it routes to completely different locale and it causes caching not working..

Ответить
D4rzk
D4rzk - 15.10.2023 16:30

Great video, I just want to ask, if I use useTranslations in page.tsx, doesn't everything become a client component? Or is it something different than a classic hook? It confuses me how they have "use" in there, so I want to ask. :)

Ответить
Derek Gygax
Derek Gygax - 10.10.2023 12:16

This video is great! I had just about given up on using next-intl but this video made it so clear, thank you!

Ответить
balagopal s nair
balagopal s nair - 28.09.2023 12:35

hey, how do we chain this middleware with the normal middleware that has conditional statements for rewriting a path?

Ответить
Sayyed Aaman
Sayyed Aaman - 27.09.2023 21:39

Thank you this video. That's great

Ответить
Gantushig Saruul
Gantushig Saruul - 27.09.2023 14:04

Thank you for your great video. Even though everything in the video works. I am currently facing this reloading problem. When I try to change the language of the web, it fully reloads. I want to change the language without reloading the page. Is there any way to do that?

Ответить
ArmaganVideos
ArmaganVideos - 24.09.2023 21:41

Ughhh this got soooo complicated and bad with the app directory. It was insanely straightforward with pages directory and next-i18next..

Thanks for the explanations tho :)

Ответить
noureddine ettouzany
noureddine ettouzany - 22.09.2023 05:56

when creating a i18n.js file I get this error
Module '"next-intl/server"' has no exported member 'getRequestConfig'.
in the next-intl/server there is no getRequestConfig method

Ответить
Change color life
Change color life - 20.09.2023 20:37

i have error when i use layout and import'./global.css' module not fount in [locale]

Ответить
Anhelina Zhurauskaya
Anhelina Zhurauskaya - 08.09.2023 16:00

Does anyone has the same error? 'Error: Unable to find `next-intl` locale, have you configured the middleware?'

Ответить
G. Flores
G. Flores - 06.09.2023 16:58

Im using redux and get a 404 after passing the layout, css and page to the [locale] folder, any thouhgts on that? thanks!

Ответить
Nofy89
Nofy89 - 01.09.2023 16:28

Thank you!

Ответить
Gonzalo Lobo
Gonzalo Lobo - 01.09.2023 13:10

Useful....

Where is the src folder? Should be there, and you dont have it. All the time this error:

Error: Unable to find `next-intl` locale, have you configured the middleware?`

Next-translate is much better than next-intl.

See ya!

Ответить
Thomas Luizon
Thomas Luizon - 23.08.2023 23:17

What theme are you using?

Ответить
ZABIALY
ZABIALY - 21.08.2023 20:03

Is there a way to use it when my page is an async function?

Ответить
Karl Djotchuang Tamo
Karl Djotchuang Tamo - 17.08.2023 15:15

Thanks, this video helped me a great deal.

Ответить
JippoC
JippoC - 16.08.2023 15:27

Miten hyödynnät tätät DatoCMS kanssa esimerkiksi ?

Ответить
Кирилл Загоскин
Кирилл Загоскин - 15.08.2023 03:11

Thank you! You have a wonderful English accent! The video was helpful!

Ответить
Rain Wong
Rain Wong - 09.08.2023 10:13

nice turorial!!!! but how dose work output:"export" in next.config.js for static page?

Ответить
nooutidev
nooutidev - 02.08.2023 04:24

Straight forward, tahnks!

Ответить
Reyhan Yılmaz
Reyhan Yılmaz - 01.08.2023 17:42

import Link from "next-intl/link";

TypeError: (0 , next_navigation__WEBPACK_IMPORTED_MODULE_0__.useParams) is not a function

how do I solve :(

Ответить
Wylkerd Santos Oficial
Wylkerd Santos Oficial - 01.08.2023 07:00

What a great video, it helped me a lot!
Now, how can I test if my defaultLocale would work correctly, I already tried to change Chrome's 'sensors' and there was no change, how can I test this?

Ответить
Marwa Ehab
Marwa Ehab - 31.07.2023 14:58

I followed the steps but i had this error
Unhandled Runtime Error
Error: No intl context found. Have you configured the provider?

Ответить
Aimn Blbol
Aimn Blbol - 29.07.2023 19:25

What if you have a blog with many posts, are you going to translate each post? Is there a better way to handle blog posts? Thanks

Ответить
Aramayis Araqelyan
Aramayis Araqelyan - 23.07.2023 23:19

Why in change languages, page refreshed?
That's right?

Ответить
Davy Massoneto
Davy Massoneto - 21.07.2023 18:06

Has danger error in next-intl, they don't work with app folder and BASE_URL. If you search in they github issues, has a topic posted there.

Ответить
Executioner 47
Executioner 47 - 13.07.2023 23:54

Thank you so much, sir! Your video was incredibly helpful ❤🫡. I wanted to mention that if you have an 'api' folder in your project, it is essential to place it outside of the '[local]' folder. Keep up the fantastic work, and thank you again for sharing your knowledge with us!

Ответить
Никита Лихачев
Никита Лихачев - 08.07.2023 23:55

Thank you so much!

Ответить
Malik Gray
Malik Gray - 08.07.2023 23:20

It sucks that you didn't do it in Typescript. Javascript only is completely useless for people who use Typescript and anyone who wants to work on a project professionally should be using Typescript. =\

Ответить
Ibrahim Saddik
Ibrahim Saddik - 06.07.2023 18:43

guyyy, i love the way you pronounce hook

Ответить
Matt Burgess
Matt Burgess - 06.07.2023 16:30

Not gonna lie the hardest part of this is figuring out whether I’m supposed to be using next-intl, react-intl, react-i18n, react-i18next, next-i18next.

It’s a complete mystery. And every tutorial or article recommends a different tool.

Ответить
Jose Fernandez Jr
Jose Fernandez Jr - 05.07.2023 12:10

have you tried deploy this project into firebase hosting ? is next export supported now ?

Ответить
Regpin
Regpin - 04.07.2023 10:30

Thanks a lot, great video :)

Ответить
Ayush Gogna
Ayush Gogna - 18.06.2023 20:26

I want to ask which one has better performance i18n or next-intl with server and client side? btw your content helped me alot about app dir make more videos

Ответить
Joe Trades
Joe Trades - 16.06.2023 06:51

I wished it was on typescript

Ответить
Sergio Moyano Romero
Sergio Moyano Romero - 14.06.2023 10:24

Anyone knows how to make Static Site Generation with i18n? I tried everything but nothing works. Actually I don't really understand why something that much important like have a website with SSR and multi language is so hard. Can anyone help me?

Ответить
Gratiela Blidariu
Gratiela Blidariu - 12.06.2023 13:19

I usually don't leave messages, but this video is amazing! You have a great way of explaining things that makes it so much easier to understand. Thanks for this video:)

Ответить
Kod-Man
Kod-Man - 11.06.2023 00:25

What if we have a client component? It is impossible to think of an app without hooks. What can we do in this case?

Ответить
SDK Gyan
SDK Gyan - 10.06.2023 10:23

How mange canonical tag in NextJs 13 next-intl

Ответить
Ang Zarr
Ang Zarr - 04.06.2023 00:11

straight to the point! great as always!

Ответить
Akhilkrishnan R
Akhilkrishnan R - 02.06.2023 15:22

Great tutorial.
How do you build the app if it has middlewares?

Ответить
seanchen
seanchen - 01.06.2023 20:37

Is it possible to do it without path, only using cookies in the app router?

Ответить
lightbourne
lightbourne - 31.05.2023 21:28

thank you a lot. that's exactly what i've been looking for

Ответить
Alex Nunes
Alex Nunes - 31.05.2023 17:47

Cool video! @TuomoKankaanpaa How do you translate the page's title (browser's tab) that you define using next js metadata?

Ответить
Yusufboy Saydullayev
Yusufboy Saydullayev - 31.05.2023 15:41

if you switch language your page rerendered. how to do without rerender

Ответить
Nima Malayeri
Nima Malayeri - 30.05.2023 07:10

wow the time I am watching this is 7 days ago and server component is not on beta anymore since 4 days ago and the doc is changed

Ответить