neuland-ingolstadt / neuland.app

A free & open source, web-based replacement for the official app of the Technische Hochschule Ingolstadt built with React and Next.js.
https://neuland.app
GNU Affero General Public License v3.0
36 stars 33 forks source link

🌐 Add i18n support #288

Closed BuildmodeOne closed 1 year ago

BuildmodeOne commented 1 year ago

Closes #96

🤖 Generated by Copilot at 4e52ee3

Summary

Added internationalization support to various components of the app using next-i18next and the useTranslation hook. Created a LanguageModal component to allow users to switch languages. Translated card titles, texts, and UI elements using the t function and translation namespaces. Modified the allergens.json file to store allergen names in both German and English. Used the DeepL API to translate room functions.

Sing, O Muse, of the glorious pull request That brought to the app the gift of tongues And made it speak in German and in English With useTranslation and t functions.

Walkthrough

Robert27 commented 1 year ago

Issue #265 is still missing and must be implemented before merge / release.

BuildmodeOne commented 1 year ago

Issue #265 is still missing and must be implemented before merge / release.

I just discussed this topic with @alexhorn and we came to the conclusion that a English privacy policy would not be necessary doe to the fact that most of the users are German.

Additionally, as far as im concerned the GDPR does not demand a English version.

Robert27 commented 1 year ago

Issue #265 is still missing and must be implemented before merge / release.

I just discussed this topic with @alexhorn and we came to the conclusion that a English privacy policy would not be necessary doe to the fact that most of the users are German.

Additionally, as far as im concerned the GDPR does not demand a English version.

That's right, I probably mixed something up about GDPR. Although it is usually best practice and would certainly make sense in the long term.

BuildmodeOne commented 1 year ago

@FabianSimonGross are you sure you are running the latest version? I double checked all pages you mentioned and have no problems whatsoever.

FabianSimonGross commented 1 year ago

@FabianSimonGross are you sure you are running the latest version? I double checked all pages you mentioned and have no problems whatsoever.

Yes somehow my sync failed now i checked it again with the newest version. Still some things are there to do 👯

BuildmodeOne commented 1 year ago

@FabianSimonGross are you sure you are running the latest version? I double checked all pages you mentioned and have no problems whatsoever.

Yes somehow my sync failed now i checked it again with the newest version. Still some things are there to do 👯

Okay, some things won't work because you need to set a DeepL API key in your .env.local file.

BuildmodeOne commented 1 year ago

@FabianSimonGross I just committed changes to use a simple fallback if DeepL is not configured. Can send you the DeepL API Key for real testing.

FabianSimonGross commented 1 year ago

Okay execpt for the Library Stuff it is working fine and should be :ok: