|
| 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 | +} |
0 commit comments