Skip to content

Commit aaf813d

Browse files
committed
Tabular/Video are not domains, i18n
1 parent 2be1bad commit aaf813d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/Catalog.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import StacLink from './StacLink.vue';
2424
import STAC from '../models/stac';
2525
import { formatMediaType, formatTemporalExtent } from '@radiantearth/stac-fields/formatters';
2626
import Utils from '../utils';
27+
import { translateFields } from '../i18n';
2728
2829
export default {
2930
name: 'Catalog',
@@ -85,14 +86,13 @@ export default {
8586
return [];
8687
}
8788
let domains = {
88-
'eo': 'EO',
89-
'forecast': 'Forecast',
89+
// todo: move translations to texts.json and add InSAR / ML
90+
'eo': translateFields('Electro-Optical'),
91+
'forecast': translateFields('Forecast'),
9092
'insar': 'InSAR',
9193
'ml-model': 'ML',
92-
'pc': 'Point Cloud',
93-
'sar': 'SAR',
94-
'table': 'Tabular',
95-
'video': 'Video'
94+
'pc': translateFields('Point Cloud'),
95+
'sar': translateFields('SAR')
9696
};
9797
return Object.keys(domains)
9898
.filter(key => Utils.supportsExtension(this.data, `https://stac-extensions.github.io/${key}/v*/schema.json`))

0 commit comments

Comments
 (0)