You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context:
To improve user experience, the platform should automatically detect the user's default browser language and adjust the website language accordingly if it is supported.
Feature Description:
Implement functionality that checks the user's browser language settings (for major browsers such as Chrome, Edge, Safari, Firefox) and automatically sets the website language to match if the language is supported.
Requirements:
Language Detection:
Detect the user's default language setting from their browser upon their first visit.
If the detected language is supported by the platform, automatically translate the website to that language.
Language Selection:
Display the selected language at the top of the navigation bar.
Allow users to manually change the language through the language selection dropdown, which should still be available.
Fallback:
If the browser's default language is not supported, default to English (or another preferred fallback language) and display this option in the language selection dropdown.
As a user on Common with my browser's language set to German, when I visit commonwealth.im, the website should automatically display in German. When I check the language setting in the navigation bar, I should see that German has been pre-selected, with the option to change the language if desired.
- Implement getBrowserLanguage to detect and validate browser language
- Add initializeLanguage to set initial language preference
- Add unit tests for language detection
- Initialize language on app start
Closes#9062
Co-Authored-By: Dillon Chen <[email protected]>
Description
Context:
To improve user experience, the platform should automatically detect the user's default browser language and adjust the website language accordingly if it is supported.
Feature Description:
Implement functionality that checks the user's browser language settings (for major browsers such as Chrome, Edge, Safari, Firefox) and automatically sets the website language to match if the language is supported.
Requirements:
Language Detection:
Language Selection:
Fallback:
Project Owner
@HIM92
Bucket ID
#9060
User Stories / Acceptance Criteria
As a user on Common with my browser's language set to German, when I visit commonwealth.im, the website should automatically display in German. When I check the language setting in the navigation bar, I should see that German has been pre-selected, with the option to change the language if desired.
Design Devlink
https://www.figma.com/design/Hp5RCRDFoZf07WxLKJx2Pb/Internationalization?node-id=1-54&node-type=CANVAS&t=87lZ0TZRhptMaf4m-0
Design Screenshot
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: