Skip to content

Commit 4bb543c

Browse files
authored
Merge branch 'main' into feature/add-export-and-example-to-diplan-client
2 parents 4da8db3 + f49f174 commit 4bb543c

File tree

168 files changed

+1646
-1582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+1646
-1582
lines changed

@types/i18next.d.ts

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
import 'i18next'
2+
3+
// // // core/plugins // // //
4+
5+
import { resourcesDe as resourcesDeCore } from '@polar/core/src/locales'
6+
import { resourcesDe as resourcesDeAddressSearch } from '@polar/plugin-address-search/src/locales'
7+
import { resourcesDe as resourcesDeAttributions } from '@polar/plugin-attributions/src/locales'
8+
import { resourcesDe as resourcesDeDraw } from '@polar/plugin-draw/src/locales'
9+
import { resourcesDe as resourcesDeExport } from '@polar/plugin-export/src/locales'
10+
import { resourcesDe as resourcesDeFilter } from '@polar/plugin-filter/src/locales'
11+
import { resourcesDe as resourcesDeFullscreen } from '@polar/plugin-fullscreen/src/locales'
12+
import { resourcesDe as resourcesDeGeoLocation } from '@polar/plugin-geo-location/src/locales'
13+
import { resourcesDe as resourcesDeGfi } from '@polar/plugin-gfi/src/locales'
14+
import { resourcesDe as resourcesDeIconMenu } from '@polar/plugin-icon-menu/src/locales'
15+
import { resourcesDe as resourcesDeLayerChooser } from '@polar/plugin-layer-chooser/src/locales'
16+
import { resourcesDe as resourcesDeLegend } from '@polar/plugin-legend/src/locales'
17+
import { resourcesDe as resourcesDeLoadingIndicator } from '@polar/plugin-loading-indicator/src/locales'
18+
import { resourcesDe as resourcesDePins } from '@polar/plugin-pins/src/locales'
19+
import { resourcesDe as resourcesDeScale } from '@polar/plugin-scale/src/locales'
20+
import { resourcesDe as resourcesDeToast } from '@polar/plugin-toast/src/locales'
21+
import { resourcesDe as resourcesDeZoom } from '@polar/plugin-zoom/src/locales'
22+
23+
// // // clients // // //
24+
25+
import { dishDe } from '@polar/client-dish/src/locales'
26+
import { dishHeaderDe } from '@polar/client-dish/src/plugins/Header/locales'
27+
import { dishModalDe } from '@polar/client-dish/src/plugins/Modal/locales'
28+
import { meldemichelDe } from '@polar/client-meldemichel/src/locales'
29+
import { meldemichelDe as meldemichelAfmButtonDe } from '@polar/client-meldemichel/src/plugins/AfmButton/locales'
30+
import { snowboxDe } from '@polar/client-snowbox/src/locales'
31+
import { textLocatorDe } from '@polar/client-text-locator/src/locales'
32+
import { textLocatorDe as textLocatorHeaderDe } from '@polar/client-text-locator/src/plugins/Header/locales'
33+
import { geometrySearchDe } from '@polar/client-text-locator/src/plugins/GeometrySearch/locales'
34+
35+
// // // resources // // //
36+
37+
const resources = {
38+
common: {
39+
...resourcesDeCore,
40+
dish: dishDe,
41+
meldemichel: meldemichelDe,
42+
snowbox: snowboxDe,
43+
textLocator: textLocatorDe,
44+
plugins: {
45+
addressSearch: resourcesDeAddressSearch.plugins.addressSearch,
46+
attributions: resourcesDeAttributions.plugins.attributions,
47+
dish: {
48+
...dishHeaderDe,
49+
...dishModalDe
50+
},
51+
draw: resourcesDeDraw.plugins.draw,
52+
export: resourcesDeExport.plugins.export,
53+
filter: resourcesDeFilter.plugins.filter,
54+
fullscreen: resourcesDeFullscreen.plugins.fullscreen,
55+
geoLocation: resourcesDeGeoLocation.plugins.geoLocation,
56+
// geometrySearch is from textLocator
57+
geometrySearch: {
58+
...geometrySearchDe
59+
},
60+
gfi: resourcesDeGfi.plugins.gfi,
61+
iconMenu: resourcesDeIconMenu.plugins.iconMenu,
62+
layerChooser: resourcesDeLayerChooser.plugins.layerChooser,
63+
legend: resourcesDeLegend.plugins.legend,
64+
loadingIndicator: resourcesDeLoadingIndicator.plugins.loadingIndicator,
65+
meldemichel: {
66+
...meldemichelAfmButtonDe
67+
},
68+
pins: resourcesDePins.plugins.pins,
69+
scale: resourcesDeScale.plugins.scale,
70+
textLocator: {
71+
...textLocatorHeaderDe
72+
},
73+
toast: resourcesDeToast.plugins.toast,
74+
zoom: resourcesDeZoom.plugins.zoom,
75+
}
76+
}
77+
} as const
78+
79+
declare module 'i18next' {
80+
interface CustomTypeOptions {
81+
defaultNS: "common"
82+
resources: typeof resources
83+
}
84+
}

packages/clients/afm/tsconfig.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/clients/dish/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Fix: Extend typing for search result function according to type package update.
77
- Fix: Import types `AddressSearchState` and `AddressSearchGetters` from correct position.
88
- Fix: Import enum `SearchResultSymbols` from correct position.
9+
- Fix: The alt text to the "Landesdachmarke" for screen readers was missing.
910
- Chore: Change value of `pins.movable` configuration to `'drag'` as using a boolean has been deprecated in a future release.
1011
- Chore: Upgrade `@masterportal/masterportalapi` from `2.8.0` to `2.45.0` and subsequently `ol` from `^7.1.0` to `^10.3.1`.
1112
- Chore: Update `@polar`-dependencies to the latest versions.

packages/clients/dish/src/language.ts

Lines changed: 0 additions & 49 deletions
This file was deleted.

packages/clients/dish/src/locales.ts

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import { Locale } from '@polar/lib-custom-types'
2+
3+
export const dishDe = {
4+
backendSizeError:
5+
'Die Suche ist zu allgemein. Bitte wählen Sie weitere Suchbegriffe oder schränken Sie die Suche über einen Filter ein.',
6+
unknownError: 'Ein unbekannter Fehler ist aufgetreten.',
7+
idNotFound:
8+
'Die verlinkte ID konnte leider nicht aufgelöst werden. Bitte verwenden Sie Suche und Karte, um zum Denkmal zu navigieren.',
9+
addressSearchHint: 'Eingabe von z.B. Bezeichnung, Lage, Adresse, ...',
10+
} as const
11+
12+
export const resourcesDe = {
13+
dish: dishDe,
14+
plugins: {
15+
gfi: {
16+
property: {
17+
export: 'Export Detailinformationen',
18+
},
19+
toggle: 'Informationen zu Sachgesamtheit öffnen/schließen',
20+
},
21+
},
22+
} as const
23+
24+
export const resourcesEn = {
25+
dish: {
26+
backendSizeError:
27+
'Too broad search. Please choose additional search terms or use a filter.',
28+
unknownError: 'An unknown error occurred.',
29+
idNotFound:
30+
'The linked ID could not be found. Please use the search function or map to navigate to your point of interest.',
31+
addressSearchHint: 'Entry of e.g. monument names, location, address, ...',
32+
},
33+
plugins: {
34+
gfi: {
35+
property: {
36+
export: 'Detail information export',
37+
},
38+
toggle: 'Open/close additional information',
39+
},
40+
},
41+
} as const
42+
43+
const locales: Locale[] = [
44+
{
45+
type: 'de',
46+
resources: resourcesDe,
47+
},
48+
{
49+
type: 'en',
50+
resources: resourcesEn,
51+
},
52+
]
53+
54+
export default locales

packages/clients/dish/src/mapConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
dishBaseUrl,
88
// servicePrefix, s.u.
99
} from './services'
10-
import locales from './language'
10+
import locales from './locales'
1111

1212
const shBlue = '#003064'
1313
const shWhite = '#FFFFFF'
@@ -171,7 +171,7 @@ export const mapConfiguration = {
171171
groupProperties: {
172172
groupDenkmalsuche: {
173173
label: 'Denkmalsuche',
174-
hint: 'common:dish.addressSearchHint',
174+
hint: 'dish.addressSearchHint',
175175
resultDisplayMode: 'categorized',
176176
limitResults: 3,
177177
},

packages/clients/dish/src/plugins/Gfi/ActionButton.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
text
66
:href="exportProperty"
77
target="_blank"
8-
:alt="$t('common:plugins.gfi.property.imageAlt')"
9-
:title="$t('common:plugins.gfi.property.linkTitle')"
10-
:aria-label="$t('common:plugins.gfi.property.export')"
8+
:alt="$t('plugins.gfi.property.imageAlt')"
9+
:title="$t('plugins.gfi.property.linkTitle')"
10+
:aria-label="$t('plugins.gfi.property.export')"
1111
onmousedown="return false"
1212
>
1313
<v-icon small>fa-download</v-icon>
14-
{{ $t('common:plugins.gfi.property.export') }}
14+
{{ $t('plugins.gfi.property.export') }}
1515
</v-btn>
1616
</template>
1717

packages/clients/dish/src/plugins/Gfi/Content.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<v-btn
77
icon
88
small
9-
:aria-label="$t('common:plugins.gfi.header.close')"
9+
:aria-label="$t('plugins.gfi.header.close')"
1010
@click="close(true)"
1111
>
1212
<v-icon small>fa-xmark</v-icon>
@@ -49,7 +49,7 @@
4949
<v-btn
5050
icon
5151
x-small
52-
:aria-label="$t('common:plugins.gfi.toggle')"
52+
:aria-label="$t('plugins.gfi.toggle')"
5353
@click="toggleSachgesamtheit"
5454
>
5555
<v-icon small>

packages/clients/dish/src/plugins/Header/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<h1 class="polar-plugin-header">
3-
{{ $t('common:plugins.dish.header.text') }}
3+
{{ $t('plugins.dish.header.text') }}
44
</h1>
55
</template>
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import Vue from 'vue'
22
import { PluginOptions } from '@polar/lib-custom-types'
33
import Header from './Header.vue'
4-
import language from './language'
4+
import locales from './locales'
55

66
export default (options: PluginOptions) => (instance: Vue) =>
77
instance.$store.dispatch('addComponent', {
88
name: 'header',
99
plugin: Header,
10-
language,
10+
locales,
1111
options,
1212
})

packages/clients/dish/src/plugins/Header/language.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { Locale } from '@polar/lib-custom-types'
2+
3+
export const dishHeaderDe = {
4+
header: {
5+
text: 'Denkmalkarte Schleswig-Holstein',
6+
},
7+
} as const
8+
9+
const locales: Locale[] = [
10+
{
11+
type: 'de',
12+
resources: {
13+
plugins: {
14+
dish: {
15+
...dishHeaderDe,
16+
},
17+
},
18+
},
19+
},
20+
{
21+
type: 'en',
22+
resources: {
23+
plugins: {
24+
dish: {
25+
header: {},
26+
},
27+
},
28+
},
29+
},
30+
]
31+
32+
export default locales

0 commit comments

Comments
 (0)