-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/add-export-and-example-to-diplan-client
- Loading branch information
Showing
168 changed files
with
1,646 additions
and
1,582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import 'i18next' | ||
|
||
// // // core/plugins // // // | ||
|
||
import { resourcesDe as resourcesDeCore } from '@polar/core/src/locales' | ||
import { resourcesDe as resourcesDeAddressSearch } from '@polar/plugin-address-search/src/locales' | ||
import { resourcesDe as resourcesDeAttributions } from '@polar/plugin-attributions/src/locales' | ||
import { resourcesDe as resourcesDeDraw } from '@polar/plugin-draw/src/locales' | ||
import { resourcesDe as resourcesDeExport } from '@polar/plugin-export/src/locales' | ||
import { resourcesDe as resourcesDeFilter } from '@polar/plugin-filter/src/locales' | ||
import { resourcesDe as resourcesDeFullscreen } from '@polar/plugin-fullscreen/src/locales' | ||
import { resourcesDe as resourcesDeGeoLocation } from '@polar/plugin-geo-location/src/locales' | ||
import { resourcesDe as resourcesDeGfi } from '@polar/plugin-gfi/src/locales' | ||
import { resourcesDe as resourcesDeIconMenu } from '@polar/plugin-icon-menu/src/locales' | ||
import { resourcesDe as resourcesDeLayerChooser } from '@polar/plugin-layer-chooser/src/locales' | ||
import { resourcesDe as resourcesDeLegend } from '@polar/plugin-legend/src/locales' | ||
import { resourcesDe as resourcesDeLoadingIndicator } from '@polar/plugin-loading-indicator/src/locales' | ||
import { resourcesDe as resourcesDePins } from '@polar/plugin-pins/src/locales' | ||
import { resourcesDe as resourcesDeScale } from '@polar/plugin-scale/src/locales' | ||
import { resourcesDe as resourcesDeToast } from '@polar/plugin-toast/src/locales' | ||
import { resourcesDe as resourcesDeZoom } from '@polar/plugin-zoom/src/locales' | ||
|
||
// // // clients // // // | ||
|
||
import { dishDe } from '@polar/client-dish/src/locales' | ||
import { dishHeaderDe } from '@polar/client-dish/src/plugins/Header/locales' | ||
import { dishModalDe } from '@polar/client-dish/src/plugins/Modal/locales' | ||
import { meldemichelDe } from '@polar/client-meldemichel/src/locales' | ||
import { meldemichelDe as meldemichelAfmButtonDe } from '@polar/client-meldemichel/src/plugins/AfmButton/locales' | ||
import { snowboxDe } from '@polar/client-snowbox/src/locales' | ||
import { textLocatorDe } from '@polar/client-text-locator/src/locales' | ||
import { textLocatorDe as textLocatorHeaderDe } from '@polar/client-text-locator/src/plugins/Header/locales' | ||
import { geometrySearchDe } from '@polar/client-text-locator/src/plugins/GeometrySearch/locales' | ||
|
||
// // // resources // // // | ||
|
||
const resources = { | ||
common: { | ||
...resourcesDeCore, | ||
dish: dishDe, | ||
meldemichel: meldemichelDe, | ||
snowbox: snowboxDe, | ||
textLocator: textLocatorDe, | ||
plugins: { | ||
addressSearch: resourcesDeAddressSearch.plugins.addressSearch, | ||
attributions: resourcesDeAttributions.plugins.attributions, | ||
dish: { | ||
...dishHeaderDe, | ||
...dishModalDe | ||
}, | ||
draw: resourcesDeDraw.plugins.draw, | ||
export: resourcesDeExport.plugins.export, | ||
filter: resourcesDeFilter.plugins.filter, | ||
fullscreen: resourcesDeFullscreen.plugins.fullscreen, | ||
geoLocation: resourcesDeGeoLocation.plugins.geoLocation, | ||
// geometrySearch is from textLocator | ||
geometrySearch: { | ||
...geometrySearchDe | ||
}, | ||
gfi: resourcesDeGfi.plugins.gfi, | ||
iconMenu: resourcesDeIconMenu.plugins.iconMenu, | ||
layerChooser: resourcesDeLayerChooser.plugins.layerChooser, | ||
legend: resourcesDeLegend.plugins.legend, | ||
loadingIndicator: resourcesDeLoadingIndicator.plugins.loadingIndicator, | ||
meldemichel: { | ||
...meldemichelAfmButtonDe | ||
}, | ||
pins: resourcesDePins.plugins.pins, | ||
scale: resourcesDeScale.plugins.scale, | ||
textLocator: { | ||
...textLocatorHeaderDe | ||
}, | ||
toast: resourcesDeToast.plugins.toast, | ||
zoom: resourcesDeZoom.plugins.zoom, | ||
} | ||
} | ||
} as const | ||
|
||
declare module 'i18next' { | ||
interface CustomTypeOptions { | ||
defaultNS: "common" | ||
resources: typeof resources | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { Locale } from '@polar/lib-custom-types' | ||
|
||
export const dishDe = { | ||
backendSizeError: | ||
'Die Suche ist zu allgemein. Bitte wählen Sie weitere Suchbegriffe oder schränken Sie die Suche über einen Filter ein.', | ||
unknownError: 'Ein unbekannter Fehler ist aufgetreten.', | ||
idNotFound: | ||
'Die verlinkte ID konnte leider nicht aufgelöst werden. Bitte verwenden Sie Suche und Karte, um zum Denkmal zu navigieren.', | ||
addressSearchHint: 'Eingabe von z.B. Bezeichnung, Lage, Adresse, ...', | ||
} as const | ||
|
||
export const resourcesDe = { | ||
dish: dishDe, | ||
plugins: { | ||
gfi: { | ||
property: { | ||
export: 'Export Detailinformationen', | ||
}, | ||
toggle: 'Informationen zu Sachgesamtheit öffnen/schließen', | ||
}, | ||
}, | ||
} as const | ||
|
||
export const resourcesEn = { | ||
dish: { | ||
backendSizeError: | ||
'Too broad search. Please choose additional search terms or use a filter.', | ||
unknownError: 'An unknown error occurred.', | ||
idNotFound: | ||
'The linked ID could not be found. Please use the search function or map to navigate to your point of interest.', | ||
addressSearchHint: 'Entry of e.g. monument names, location, address, ...', | ||
}, | ||
plugins: { | ||
gfi: { | ||
property: { | ||
export: 'Detail information export', | ||
}, | ||
toggle: 'Open/close additional information', | ||
}, | ||
}, | ||
} as const | ||
|
||
const locales: Locale[] = [ | ||
{ | ||
type: 'de', | ||
resources: resourcesDe, | ||
}, | ||
{ | ||
type: 'en', | ||
resources: resourcesEn, | ||
}, | ||
] | ||
|
||
export default locales |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import Vue from 'vue' | ||
import { PluginOptions } from '@polar/lib-custom-types' | ||
import Header from './Header.vue' | ||
import language from './language' | ||
import locales from './locales' | ||
|
||
export default (options: PluginOptions) => (instance: Vue) => | ||
instance.$store.dispatch('addComponent', { | ||
name: 'header', | ||
plugin: Header, | ||
language, | ||
locales, | ||
options, | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Locale } from '@polar/lib-custom-types' | ||
|
||
export const dishHeaderDe = { | ||
header: { | ||
text: 'Denkmalkarte Schleswig-Holstein', | ||
}, | ||
} as const | ||
|
||
const locales: Locale[] = [ | ||
{ | ||
type: 'de', | ||
resources: { | ||
plugins: { | ||
dish: { | ||
...dishHeaderDe, | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
type: 'en', | ||
resources: { | ||
plugins: { | ||
dish: { | ||
header: {}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
] | ||
|
||
export default locales |
Oops, something went wrong.