-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(app,app-shell,app-shell-odd): detect user system language, add language setting to app config #16393
Conversation
adds a config language value to desktop/ODD and initializes i18n language to the stored config value closes PLAT-504
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Straight forward, looks good!
const storedSystemLanguage = useSelector(getStoredSystemLanguage) | ||
|
||
// TODO(bh, 2024-10-09): desktop app, check for current system language vs stored config system language value, launch modal | ||
console.log( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug print?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a spot check, will remove in next PR that uses the system language
Overview
adds a config app language value to desktop/ODD and initializes i18n language to the stored app language config value. detects the user's system language in desktop app-shell and transmits to renderer via IPC/redux. adds a system language config value.
closes PLAT-504, PLAT-497
Test Plan and Hands on Testing
updated unit tests, confirmed the config value persists and initializes language. developed on MacOS, will need to test in windows/linux before release.
Changelog
Review requests
confirm the language selection persists on app restart. do the LocalizationProvider changes make sense?
Risk assessment
medium, this changes the app-level localization provider wrapper