Skip to content

Commit

Permalink
Add missing translatable content (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagage authored Feb 26, 2021
1 parent 86891e3 commit 1ff25a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/plugin/Routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ BR.Routing = L.Routing.extend({
},

onAdd: function (map) {
this.options.tooltips.waypoint = i18next.t('map.route-tooltip-waypoint');
this.options.tooltips.segment = i18next.t('map.route-tooltip-segment');

this._segmentsCasing = new L.FeatureGroup().addTo(map);
this._loadingTrailerGroup = new L.FeatureGroup().addTo(map);

Expand Down
2 changes: 2 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
"route-quality-cost": "Cost coding",
"route-quality-incline": "Incline coding",
"route-quality-shortcut": "{{action}} ({{key}} key to toggle)",
"route-tooltip-segment": "Drag to create a new waypoint",
"route-tooltip-waypoint": "Waypoint. Drag to move; Click to remove.",
"strava-biking": "Show Strava biking segments",
"strava-running": "Show Strava running segments",
"strava-shortcut": "{{action}}\n({{key}} key to toggle layer, click to reload for current area)",
Expand Down

0 comments on commit 1ff25a5

Please sign in to comment.