mapbox / mapbox/mapbox-navigation-ios

Can't set custom locale and distanceMeasurementSystem in route options

Open
#2,783 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug jira-sync-complete topic: localization
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.