cthit / chalmers.it

A 2023/2024 rewrite of the main website of the Software Engineering (IT) student division at Chalmers
https://beta.chalmers.it
1 stars 1 forks source link

Internationalization and localization (i18n) #63

Closed GAsplund closed 2 weeks ago

GAsplund commented 2 weeks ago

This is a PR with a minimized amount of changes just to get it merged into main quickly. Managing merge conflicts on this one is a big pain. One example of how to use it is included for the ContactCard item. More translations will come later.

Uses next-i18n-router for proper routing to both / and /en.

Yes, it seems that prop drilling will be needed. I will look into using React's cache() function later. Check this documentation on why that would be useful.

Closes #61