Fix localization context and language selector #830

Merged
a22erigr merged 1 commit from 772-fix-localization-context into team_2_week_5 2026-05-11 07:01:53 +00:00
Collaborator

This PR fixes the localization setup using React Context.

Changes made:

Enabled LanguageProvider in App.js
Added the LanguageSelect component to the Settings page
Connected the language dropdown to the localization context
Verified that language selection updates correctly and persists using localStorage

The localization system is now functional for English and Swedish.

This PR fixes the localization setup using React Context. Changes made: Enabled LanguageProvider in App.js Added the LanguageSelect component to the Settings page Connected the language dropdown to the localization context Verified that language selection updates correctly and persists using localStorage The localization system is now functional for English and Swedish.
Collaborator

Add original issue #xxx in name to easier traverse forgejo and traceability

Add original issue #xxx in name to easier traverse forgejo and traceability
Collaborator

GIF 2026-05-09 13-42-53

The dropdown now exists in the settings page, it works, showing both Swedish and English in the dropdown. However, my concern:
Should the selected language apply the localization to the entire website in this PR?
- Because it does not, it just changes the 'language' to 'språk' in the settings page.

If not, then this PR is mergeable.

Code is clean and minimal.

![GIF 2026-05-09 13-42-53](/attachments/2d85d2dd-6caf-4e98-a7a1-e050d3815299) The dropdown now exists in the settings page, it works, showing both Swedish and English in the dropdown. However, my concern: Should the selected language apply the localization to the entire website in this PR? - Because it does not, it just changes the 'language' to 'språk' in the settings page. If not, then this PR is mergeable. Code is clean and minimal.
Collaborator

@c22abdal wrote in #830 (comment):

GIF 2026-05-09 13-42-53

The dropdown now exists in the settings page, it works, showing both Swedish and English in the dropdown. However, my concern: Should the selected language apply the localization to the entire website in this PR? - Because it does not, it just changes the 'language' to 'språk' in the settings page.

If not, then this PR is mergeable.

Code is clean and minimal.

This was just a smaller test we will impliment it on the website as a whole in the next issue

@c22abdal wrote in https://git.webug.se/Andras/BoundlessFlowCampus2K/pulls/830#issuecomment-9232: > [![GIF 2026-05-09 13-42-53](/attachments/2d85d2dd-6caf-4e98-a7a1-e050d3815299)](/Andras/BoundlessFlowCampus2K/attachments/2d85d2dd-6caf-4e98-a7a1-e050d3815299) > > The dropdown now exists in the settings page, it works, showing both Swedish and English in the dropdown. However, my concern: Should the selected language apply the localization to the entire website in this PR? - Because it does not, it just changes the 'language' to 'språk' in the settings page. > > If not, then this PR is mergeable. > > Code is clean and minimal. This was just a smaller test we will impliment it on the website as a whole in the next issue
a22erigr merged commit 4e6398b99c into team_2_week_5 2026-05-11 07:01:53 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!830
No description provided.