Skip to content

Commit f42e696

Browse files
authored
Merge branch 'main' into fix/separate-stacked-drawings
2 parents e27c40a + e57ba87 commit f42e696

File tree

227 files changed

+3124
-2979
lines changed

Some content is hidden

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

227 files changed

+3124
-2979
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+
}

nx.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"plugins": [
4+
"nx/plugins/package-json"
5+
],
36
"tasksRunnerOptions": {
47
"default": {
58
"runner": "nx/tasks-runners/default"

0 commit comments

Comments
 (0)