mapbox / mapbox/mapbox-navigation-ios
Can't set custom locale and distanceMeasurementSystem in route options
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 918
- Forks
- 326
- Avg merge
- 1h 16m
- Merged PRs (30d)
- 3
Description
1. Setting Langeage Chinese ,it always speaks English.
routeOptions.includesSteps = true
routeOptions.includesSpokenInstructions = true
routeOptions.locale = Locale(identifier: "zh-Hans")
2.If I set langeage , unit can't change KM and MILE.
routeOptions.includesSpokenInstructions = true
routeOptions.includesSteps = true
routeOptions.distanceMeasurementSystem = usesMetric ? .metric : .imperial
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 locating the routeOptions handling for locale and distanceMeasurementSystem, then reproduce the reported cases with Locale(identifier: "zh-Hans") and metric or imperial settings. Done means spoken instructions use the selected language and distance units consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- internationalization, localization, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100