3cn-ecn / nantralPlatform

Nantral Platform is a website project for clubs, events and more in Centrale Nantes
https://nantral-platform.fr
MIT License
20 stars 1 forks source link

Update: Add translation to post and event #1114

Closed Corentin09 closed 8 months ago

Corentin09 commented 10 months ago

Adding translation system to event and post

Post

User can now publish different translations for a Post

When an user open the form to create a post, there is now a select on top of the form, which indicate the current language for the field of the post

Capture d’écran 2023-09-15 à 17 25 27

The user can complete the fields for a certain translation.

Capture d’écran 2023-09-15 à 17 28 53

Then, if he want to add an other translation, he can change the language with the select fields. The translated fields are now empty, and can be completed with a different translation

Capture d’écran 2023-09-15 à 17 29 16

When posted, the translation will change when the user change the language settings for his account

If a post lack a translation in a language, it will pick another translation available

Event

The functionality function the same for the post and for the event

sonarcloud[bot] commented 8 months ago

[Nantral Platform Backend] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

58.2% 58.2% Coverage
0.0% 0.0% Duplication

sonarcloud[bot] commented 8 months ago

[Nantral Platform Frontend] SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

39.3% 39.3% Coverage
8.2% 8.2% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint