A website for new students at Lund University in order for them to get a head start in understanding the city, the university and the student life.
Make sure you have Node.js 16 and pnpm installed before continuing.
- Clone the repository
git clone [email protected]:esek/nyilund.git
- Install dependencies
pnpm install
- Start the development server
pnpm dev
Internationalization is done using a custom built solution.
The <MainLayout />
component has a locale
prop that is used to determine which language to use.
Then, all subcomponents that require translations also have a locale
prop.
This can then be used in conjuction with the getTranslations
function to retrieve a tuple of the translation function as well as the routes for the current locale.
The translations are placed in the locales
folder, and exported from the index.ts
file.
The FAQ section is built using markdown files in the content/faq
folder. These are placed in their relative language folder, and are then imported in the <FAQ />
component. This is done in order to be able to use more advanced markdown features, such as links and headings.