-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add locale option to enable localization of UI strings (#8095)
- Loading branch information
1 parent
46028d2
commit 1c0cc30
Showing
7 changed files
with
74 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// @flow | ||
|
||
const defaultLocale = { | ||
'FullscreenControl.Enter': 'Enter fullscreen', | ||
'FullscreenControl.Exit': 'Exit fullscreen', | ||
'GeolocateControl.FindMyLocation': 'Find my location', | ||
'GeolocateControl.LocationNotAvailable': 'Location not available', | ||
'LogoControl.Title': 'Mapbox logo', | ||
'NavigationControl.ResetBearing': 'Reset bearing to north', | ||
'NavigationControl.ZoomIn': 'Zoom in', | ||
'NavigationControl.ZoomOut': 'Zoom out', | ||
'ScaleControl.Feet': 'ft', | ||
'ScaleControl.Meters': 'm', | ||
'ScaleControl.Kilometers': 'km', | ||
'ScaleControl.Miles': 'mi', | ||
'ScaleControl.NauticalMiles': 'nm' | ||
|
||
}; | ||
|
||
export default defaultLocale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters