Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add en-GB locales #410

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
// "de-CH",
"es",
"en",
// "en-GB",
"fr",
// "fr-CA",
// "fr-CH",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/en-GB/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"native": "English (UK)",
"global": "English (UK)"
}
4 changes: 4 additions & 0 deletions src/locales/en-GB/datepicker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const format = 'DD/MM/YYYY';
const locale = import('vue2-datepicker/locale/en');
locale.formatLocale.firstDayOfWeek = 1;
export default {format, locale};
8 changes: 8 additions & 0 deletions src/locales/en-GB/default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Utils from '../../utils';
export default Utils.mergeDeep(
{
fields: require('./fields.json')
},
require('./texts.json'),
require('../en/custom.json')
);
2 changes: 2 additions & 0 deletions src/locales/en-GB/duration.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { en as locale } from '@musement/iso-duration';
export default locale;
27 changes: 27 additions & 0 deletions src/locales/en-GB/fields.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"Anonymized Location": "Anonymised Location",
"Center Frequency": "Centre Frequency",
"Cloud Cover": "Cloud Cover",
"Cloud Storage": "Cloud Storage",
"Cloud-Optimized GeoTIFF image": "Cloud-Optimised GeoTIFF image",
"Cloud-Optimized Point Cloud (LASzip)": "Cloud-Optimised Point Cloud (LASzip)",
"Color": "Colour",
"Finalized": "Finalised",
"Grayscale with relief": "Greyscale with relief",
"Grayscale without relief": "Greyscale without relief",
"Instruments": "Instruments",
"Internationalization / Localization": "Internationalisation / Localisation",
"License": "Licence",
"Normalized Radar Backscatter (SAR)": "Normalised Radar Backscatter (SAR)",
"Organization": "Organisation",
"Parent STAC Catalog": "Parent STAC Catalogue",
"Point (at pixel center)": "Point (at pixel centre)",
"Polarizations": "Polarisations",
"RGB color with relief": "RGB colour with relief",
"RGB color without relief": "RGB colour without relief",
"Root STAC Catalog": "Root STAC Catalogue",
"The center wavelength of the band": "The centre wavelength of the band",
"The size of one side of the anonymized bounding box": "The size of one side of the anonymised bounding box",
"Visualization": "Visualisation",
"Visualizations": "Visualisations"
}
21 changes: 21 additions & 0 deletions src/locales/en-GB/texts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"anonymized": {
"title": "Anonymised"
},
"catalogs": {
"filterByTitle": "Filter catalogues by title",
"filterByTitleAndMore": "Filter catalogues by title, description or keywords",
"noMatches": "No catalogues match the given search criteria."
},
"errors": {
"noExternalAccess": "Accessing external catalogues is not allowed!"
},
"index": {
"catalog": "Catalogue",
"specifyCatalog": "Please specify a STAC Catalogue or API..."
},
"sidebar": {
"switchCatalog": "Switch Catalogue"
},
"stacCatalog": "Catalogue | Catalogues"
}