Fix localization context and language selector #830
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!830
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "772-fix-localization-context"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Add original issue #xxx in name to easier traverse forgejo and traceability
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.
@c22abdal wrote in #830 (comment):
This was just a smaller test we will impliment it on the website as a whole in the next issue