Feat(i18n): make language a setting #185
Merged
jakob.scheid
merged 8 commits from 2026-08-07 11:44:33 +02:00
feature/make-language-a-setting into main
Labels
Clear labels
Area/Global
Area/Legal
Area/Search Results
Area/Settings
Area/Sidebar
Area/Start page
Compat/Breaking
Kind/Bug
Kind/Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Refactor
Kind/Security
Kind/Style
Kind/Testing
Kind/Urgent
A global issue or pull request
An issue or pull requests related to the search results feature
The issue or pull request is related to the settings
The issue or pull request is related to the sidebar
Related to the start page
Breaking change that will not be backward compatible
Something is not working
Chore and maintainerance
Documentation changes
Improve existing functionality
New functionality
Refactoring code
This is security issue
Code style changes
Issue or pull request related to testing
The issue or pull request is urgent
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Will Not Fix
3
This issue will not be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Projects
Clear projects
No projects
Project Board
Done
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Seekra/frontend#185
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Language setting
This pull request makes the language a setting.
The language switch now stores the current language in the settings. The tests were updated to this new behavior. There is a new watcher in the language switch button component which watches the language setting. The code to set the language is now in
src/i18n.js,To be able to configure settings dynamically, the settings configuration is now a JavaScript module instead of a JSON module.
The user's language is now loaded when mounting the root component as it needs the settings store.
The utility
src/utils/currentLanguage.jsis now in the I18n feature utilities directory. Its purpose has changed to only parse the navigator language. The tests were updated to this new behavior.Related issues
Closes #175