mapbox / mapbox/mapbox-navigation-android
Components not updated when changing the language on the fly while navigating
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Description
When changing the language of the device (`Locale`) on the fly while navigating some components are not updated properly 👀

The banner instructions are updated partially - only `ft` gets localized to `pie` but `mi` and the text of the instructions (e.g. `Turn left` or `You will arrive`) stay the same 🇬🇧
Also a new session is launched when foregrounding the app (not desired). Note the language changed when clicking on the `END NAVIGATION` button (a new notification is created) ☝️
After doing this you're unable to close the second session (only _Force closing_ the app from the app settings).
This is noticeable too because voice instructions are voiced twice.
After changing the language the voice instructions are still voiced in 🇬🇧 instead of 🇪🇸 (even after closing the first session as commented above).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported locale change while navigating, including foregrounding the app and ending navigation. Trace navigation session and notification lifecycle plus banner and voice instruction localization; done means all visible and spoken instructions use the new locale without duplicate sessions or an uncloseable second session.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100