This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep device language when it has been previosuly set, after a success…
…ful delegated authentication flow that clears localStorage (#11902) * Do not remove the language when clearing local storage Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Revised comment on getting the defined language from settings Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Explicitly checking for language set at the device level Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Add test that checks if device language setting is kept after a successfull delegated authentication flow Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Adds test for unhappy path and adjusts to use the SettingsStore instead of going directly to localStorage Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Removing unnecessary variable after test refactor Signed-off-by: Milton Moura <miltonmoura@gmail.com> --------- Signed-off-by: Milton Moura <miltonmoura@gmail.com>
- Loading branch information