We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6f1b22 commit f33793dCopy full SHA for f33793d
src/index.js
@@ -149,6 +149,11 @@ var controlOptions = {
149
collapsible: options.lrm.collapsible,
150
itineraryBuilder: new ItineraryBuilder(),
151
};
152
+// translate profile names
153
+for (var profile = 0, len = controlOptions.services.length; profile < len; profile++)
154
+{
155
+ controlOptions.services[profile].label = localization.t(language, controlOptions.services[profile].label) || controlOptions.services[profile].label;
156
+}
157
158
var router = (new L.Routing.OSRMv1(controlOptions));
159
router._convertRouteOriginal = router._convertRoute;
0 commit comments