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
Copy file name to clipboardExpand all lines: Sources/MapboxNavigation/SpeedLimitView.swift
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,8 @@ public class SpeedLimitView: UIView {
88
88
return formatter
89
89
}()
90
90
91
+
letlocale=Locale.current
92
+
91
93
overrideinit(frame:CGRect){
92
94
super.init(frame: frame)
93
95
@@ -134,8 +136,13 @@ public class SpeedLimitView: UIView {
134
136
135
137
switch signStandard {
136
138
case.mutcd:
137
-
letlegend=NSLocalizedString("SPEED_LIMIT_LEGEND", bundle:.mapboxNavigation, value:"Max", comment:"Label above the speed limit in an MUTCD-style speed limit sign. Keep as short as possible.").uppercased()
letlegend=NSLocalizedString("SPEED_LIMIT_LEGEND", bundle:.mapboxNavigation, value:"Speed Limit", comment:"Label above the speed limit in an MUTCD-style speed limit sign. Keep as short as possible.").uppercased()
letlegend=NSLocalizedString("SPEED_LIMIT_LEGEND", bundle:.mapboxNavigation, value:"Max", comment:"Label above the speed limit in an MUTCD-style speed limit sign. Keep as short as possible.").uppercased()
0 commit comments