mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-04 04:52:09 +08:00
multilang: nav instructions (#25102)
* Try Chinese nav * try this * not sure what does what * read language setting in navd * probably not used Co-authored-by: Willem Melching <willem.melching@gmail.com> old-commit-hash: 42210a99104d83d19cf7c426433721e1bf4ad1eb
This commit is contained in:
@@ -120,6 +120,10 @@ class RouteEngine:
|
||||
cloudlog.warning(f"Calculating route {self.last_position} -> {destination}")
|
||||
self.nav_destination = destination
|
||||
|
||||
lang = self.params.get('LanguageSetting', encoding='utf8')
|
||||
if lang is not None:
|
||||
lang = lang.replace('main_', '')
|
||||
|
||||
params = {
|
||||
'access_token': self.mapbox_token,
|
||||
'annotations': 'maxspeed',
|
||||
@@ -128,6 +132,7 @@ class RouteEngine:
|
||||
'steps': 'true',
|
||||
'banner_instructions': 'true',
|
||||
'alternatives': 'false',
|
||||
'language': lang,
|
||||
}
|
||||
|
||||
if self.last_bearing is not None:
|
||||
|
||||
Reference in New Issue
Block a user