@datagouv/components-next 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{JsonPreview.client-BcEfE_hL.js → JsonPreview.client-LKxB-065.js} +1 -1
- package/dist/{MapContainer.client-CnTKaf7m.js → MapContainer.client-D9eDI4Vb.js} +1 -1
- package/dist/{PdfPreview.client-CP0aZ7i4.js → PdfPreview.client-Beh_siOr.js} +1 -1
- package/dist/{Pmtiles.client-C08OX9MO.js → Pmtiles.client-C-jRjbtQ.js} +1 -1
- package/dist/Swagger.client-B5lyf4lI.js +4 -0
- package/dist/{XmlPreview.client-B1wI3spd.js → XmlPreview.client-C6J-DwQf.js} +2 -2
- package/dist/components-next.js +1 -1
- package/dist/{main-GTyyeszt.js → main-CZXf5f3h.js} +32183 -31336
- package/dist/{vue3-xml-viewer.common-YFdchaJI.js → vue3-xml-viewer.common-Bb5dDJsR.js} +1 -1
- package/package.json +1 -1
- package/src/main.ts +15 -0
- package/dist/Swagger.client-DhNaLxjG.js +0 -4
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { App, Plugin } from 'vue'
|
|
2
|
+
import { createI18n } from 'vue-i18n'
|
|
2
3
|
import type { ContactPoint, ContactPointRole } from './types/contact_point.js'
|
|
3
4
|
import type { Badge, Badges } from './types/badges'
|
|
4
5
|
import type { Dataset, DatasetV2, DatasetV2WithFullObject, NewDataset, Quality, Rel } from './types/datasets'
|
|
@@ -118,6 +119,20 @@ const datagouv: Plugin<PluginConfig> = {
|
|
|
118
119
|
const textClamp = await import('vue3-text-clamp')
|
|
119
120
|
options.textClamp = textClamp.default
|
|
120
121
|
}
|
|
122
|
+
if (!options.i18n) {
|
|
123
|
+
const i18n = createI18n({
|
|
124
|
+
legacy: false,
|
|
125
|
+
globalInjection: true,
|
|
126
|
+
locale: 'fr',
|
|
127
|
+
messages: {},
|
|
128
|
+
formatFallbackMessages: true,
|
|
129
|
+
missingWarn: false,
|
|
130
|
+
fallbackFormat: true,
|
|
131
|
+
fallbackWarn: false,
|
|
132
|
+
})
|
|
133
|
+
options.i18n = i18n
|
|
134
|
+
app.use(i18n)
|
|
135
|
+
}
|
|
121
136
|
},
|
|
122
137
|
}
|
|
123
138
|
|