You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.change routeOptions.locale to chinese.
2.navigationView's text have changed but except unit text, it always display previous language.
3.I used InstructionsBannerView as top banner, the distanceLabel used distanceFormatter's locale, but this value just set once at naivigationView first lanuch,when I changed language, back to navigationView, it also use first value, it did't update,so I try to set new value to distanceFormatter's locale, but distanceFormatter is internal. so can you change distanceFormatter authority from internal to open or public?
or other ways to update distanceFormatter locale.
thank you so much
Expected behavior
unit text change to 米
Actual behavior
unti text still mi
Is this a one-time issue or a repeatable issue?
repeatable
The text was updated successfully, but these errors were encountered:
DistanceFormatter uses the nationalizedCurrent locale. So it uses the preferred language on the device. You can add Chinese localization to your app to support Chinese distance units.
You can also use a custom view navigation controller with any type of top banner. You can find the code example here.
Mapbox Navigation SDK version
2.17.0
Steps to reproduce
1.change routeOptions.locale to chinese.
2.navigationView's text have changed but except unit text, it always display previous language.
3.I used InstructionsBannerView as top banner, the distanceLabel used distanceFormatter's locale, but this value just set once at naivigationView first lanuch,when I changed language, back to navigationView, it also use first value, it did't update,so I try to set new value to distanceFormatter's locale, but distanceFormatter is internal. so can you change distanceFormatter authority from internal to open or public?
or other ways to update distanceFormatter locale.
thank you so much
Expected behavior
unit text change to 米
Actual behavior
unti text still mi
Is this a one-time issue or a repeatable issue?
repeatable
The text was updated successfully, but these errors were encountered: