From 8ac366318c5194ca728b9c9580131c00acee2a50 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Thu, 7 Mar 2024 22:36:38 +0100 Subject: [PATCH] Add en-GB locales --- config.js | 1 + src/locales/en-GB/config.json | 4 ++++ src/locales/en-GB/datepicker.js | 4 ++++ src/locales/en-GB/default.js | 8 ++++++++ src/locales/en-GB/duration.js | 2 ++ src/locales/en-GB/fields.json | 27 +++++++++++++++++++++++++++ src/locales/en-GB/texts.json | 21 +++++++++++++++++++++ 7 files changed, 67 insertions(+) create mode 100644 src/locales/en-GB/config.json create mode 100644 src/locales/en-GB/datepicker.js create mode 100644 src/locales/en-GB/default.js create mode 100644 src/locales/en-GB/duration.js create mode 100644 src/locales/en-GB/fields.json create mode 100644 src/locales/en-GB/texts.json diff --git a/config.js b/config.js index d11922fd5..3d66c9f4a 100644 --- a/config.js +++ b/config.js @@ -12,6 +12,7 @@ module.exports = { // "de-CH", "es", "en", +// "en-GB", "fr", // "fr-CA", // "fr-CH", diff --git a/src/locales/en-GB/config.json b/src/locales/en-GB/config.json new file mode 100644 index 000000000..b45c3125c --- /dev/null +++ b/src/locales/en-GB/config.json @@ -0,0 +1,4 @@ +{ + "native": "English (UK)", + "global": "English (UK)" +} diff --git a/src/locales/en-GB/datepicker.js b/src/locales/en-GB/datepicker.js new file mode 100644 index 000000000..72c9bec3e --- /dev/null +++ b/src/locales/en-GB/datepicker.js @@ -0,0 +1,4 @@ +const format = 'DD/MM/YYYY'; +const locale = import('vue2-datepicker/locale/en'); +locale.formatLocale.firstDayOfWeek = 1; +export default {format, locale}; diff --git a/src/locales/en-GB/default.js b/src/locales/en-GB/default.js new file mode 100644 index 000000000..da27b39b4 --- /dev/null +++ b/src/locales/en-GB/default.js @@ -0,0 +1,8 @@ +import Utils from '../../utils'; +export default Utils.mergeDeep( + { + fields: require('./fields.json') + }, + require('./texts.json'), + require('../en/custom.json') +); diff --git a/src/locales/en-GB/duration.js b/src/locales/en-GB/duration.js new file mode 100644 index 000000000..84d16e1ef --- /dev/null +++ b/src/locales/en-GB/duration.js @@ -0,0 +1,2 @@ +import { en as locale } from '@musement/iso-duration'; +export default locale; diff --git a/src/locales/en-GB/fields.json b/src/locales/en-GB/fields.json new file mode 100644 index 000000000..170788059 --- /dev/null +++ b/src/locales/en-GB/fields.json @@ -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" +} diff --git a/src/locales/en-GB/texts.json b/src/locales/en-GB/texts.json new file mode 100644 index 000000000..43e5b912c --- /dev/null +++ b/src/locales/en-GB/texts.json @@ -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" +}