Skip to content

Commit fdd2212

Browse files
m-mohrsilvester-pari
authored andcommitted
Add en-GB locales (radiantearth#410)
1 parent d4fbf0f commit fdd2212

File tree

7 files changed

+77
-1
lines changed

7 files changed

+77
-1
lines changed

config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ module.exports = {
88
locale: "en",
99
fallbackLocale: "en",
1010
supportedLocales: [
11-
"en"
11+
"de",
12+
// "de-CH",
13+
"es",
14+
"en",
15+
// "en-GB",
16+
"fr",
17+
// "fr-CA",
18+
// "fr-CH",
19+
"it",
20+
// "it-CH",
21+
"ro"
1222
],
1323
apiCatalogPriority: null,
1424
useTileLayerAsFallback: true,

src/locales/en-GB/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"native": "English (UK)",
3+
"global": "English (UK)"
4+
}

src/locales/en-GB/datepicker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const format = 'DD/MM/YYYY';
2+
const locale = import('vue2-datepicker/locale/en');
3+
locale.formatLocale.firstDayOfWeek = 1;
4+
export default {format, locale};

src/locales/en-GB/default.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Utils from '../../utils';
2+
export default Utils.mergeDeep(
3+
{
4+
fields: require('./fields.json')
5+
},
6+
require('./texts.json'),
7+
require('../en/custom.json')
8+
);

src/locales/en-GB/duration.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { en as locale } from '@musement/iso-duration';
2+
export default locale;

src/locales/en-GB/fields.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"Anonymized Location": "Anonymised Location",
3+
"Center Frequency": "Centre Frequency",
4+
"Cloud Cover": "Cloud Cover",
5+
"Cloud Storage": "Cloud Storage",
6+
"Cloud-Optimized GeoTIFF image": "Cloud-Optimised GeoTIFF image",
7+
"Cloud-Optimized Point Cloud (LASzip)": "Cloud-Optimised Point Cloud (LASzip)",
8+
"Color": "Colour",
9+
"Finalized": "Finalised",
10+
"Grayscale with relief": "Greyscale with relief",
11+
"Grayscale without relief": "Greyscale without relief",
12+
"Instruments": "Instruments",
13+
"Internationalization / Localization": "Internationalisation / Localisation",
14+
"License": "Licence",
15+
"Normalized Radar Backscatter (SAR)": "Normalised Radar Backscatter (SAR)",
16+
"Organization": "Organisation",
17+
"Parent STAC Catalog": "Parent STAC Catalogue",
18+
"Point (at pixel center)": "Point (at pixel centre)",
19+
"Polarizations": "Polarisations",
20+
"RGB color with relief": "RGB colour with relief",
21+
"RGB color without relief": "RGB colour without relief",
22+
"Root STAC Catalog": "Root STAC Catalogue",
23+
"The center wavelength of the band": "The centre wavelength of the band",
24+
"The size of one side of the anonymized bounding box": "The size of one side of the anonymised bounding box",
25+
"Visualization": "Visualisation",
26+
"Visualizations": "Visualisations"
27+
}

src/locales/en-GB/texts.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"anonymized": {
3+
"title": "Anonymised"
4+
},
5+
"catalogs": {
6+
"filterByTitle": "Filter catalogues by title",
7+
"filterByTitleAndMore": "Filter catalogues by title, description or keywords",
8+
"noMatches": "No catalogues match the given search criteria."
9+
},
10+
"errors": {
11+
"noExternalAccess": "Accessing external catalogues is not allowed!"
12+
},
13+
"index": {
14+
"catalog": "Catalogue",
15+
"specifyCatalog": "Please specify a STAC Catalogue or API..."
16+
},
17+
"sidebar": {
18+
"switchCatalog": "Switch Catalogue"
19+
},
20+
"stacCatalog": "Catalogue | Catalogues"
21+
}

0 commit comments

Comments
 (0)