/nyilund

💚 Ny i Lund - Student guide for new students studying in Lund

Primary LanguageAstroGNU Affero General Public License v3.0AGPL-3.0

💚 Ny i Lund - Student guide

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.

💻 Technologies

🚀 Getting started

Make sure you have Node.js 16 and pnpm installed before continuing.

  1. Clone the repository
git clone git@github.com:esek/nyilund.git
  1. Install dependencies
pnpm install
  1. Start the development server
pnpm dev

🌏 Localization

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.

Translations

The translations are placed in the locales folder, and exported from the index.ts file.

❓ FAQ

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.