Amsterdam-Music-Lab / MUSCLE

An application to easily set up and run online listening experiments for music research.
https://www.amsterdammusiclab.nl/
MIT License
4 stars 1 forks source link

Hotfix: Fix social media share issues & rounds localization #1152

Closed drikusroor closed 3 months ago

drikusroor commented 3 months ago

This pull request includes fixes for localization and the social message in the code.

The commit "Fix: Update social message based on locale and current URL" updates the social message based on the user's locale and the current URL. It also fixes an issue with the URL.

The commit "fix: Fix Round x / x localization in Score action" fixes the localization of the "Round x / x" text in the Score action.

The hard-coded urls in the Toontje Hoger (not Kids) rules files have been updated to send the user to "/collection/toontjehoger"

These changes improve the user experience by ensuring that the social message is correctly localized and that the "Round x / x" text is displayed correctly.

Resolves #1151

Screenshots

Left: Safari set to (System language) English, Right: Firefox, set to Dutch (browser setting)

Rounds localisation

image

Social media share content & url

image
BeritJanssen commented 3 months ago

NB: We should set all the ToontjeHoger experiments' language fields to Dutch - that way enforcing Dutch localization and avoiding a mingle mush in case users have their system or browser language set to English.