Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: mapping interface locale (#412)
* Use GIS API * Refactor map locale strings * Text change * Code clean * Add locale string * Map locale refactor * Generate translation strings * Code fix * Map locales in separate file
- Loading branch information
Showing
4 changed files
with
96 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"singleQuote": true, | ||
"tabWidth": 4, | ||
"trailingComma": "es5" | ||
} | ||
} |
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,29 @@ | ||
import i18n from '@dhis2/d2-i18n'; | ||
|
||
const getMapLocale = () => ({ | ||
acres: i18n.t('acres'), | ||
Area: i18n.t('Area'), | ||
Cancel: i18n.t('Cancel'), | ||
'Center map on area': i18n.t('Center map on area'), | ||
'Center map on line': i18n.t('Center map on line'), | ||
'Click the next position': i18n.t('Click the next position'), | ||
'Click where you want to start the measurement': i18n.t( | ||
'Click where you want to start the measurement' | ||
), | ||
Delete: i18n.t('Delete'), | ||
Distance: i18n.t('Distance'), | ||
'Enter fullscreen': i18n.t('Enter fullscreen'), | ||
'Exit fullscreen': i18n.t('Exit fullscreen'), | ||
ha: i18n.t('ha'), | ||
km: i18n.t('km'), | ||
'Measure distances and areas': i18n.t('Measure distances and areas'), | ||
mi: i18n.t('mi'), | ||
Perimeter: i18n.t('Perimeter'), | ||
'Reset bearing to north': i18n.t('Reset bearing to north'), | ||
'Search for place or address': i18n.t('Search for place or address'), | ||
'Zoom in': i18n.t('Zoom in'), | ||
'Zoom out': i18n.t('Zoom out'), | ||
'Zoom to content': i18n.t('Zoom to content'), | ||
}); | ||
|
||
export default getMapLocale; |