@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.
@@ -1,4 +1,4 @@
1
- import { g as Ke } from "./main-GTyyeszt.js";
1
+ import { g as Ke } from "./main-CZXf5f3h.js";
2
2
  import We from "vue";
3
3
  function Fe(I, K) {
4
4
  for (var V = 0; V < K.length; V++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datagouv/components-next",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./src/main.ts",
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
 
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./main-GTyyeszt.js";
2
- export {
3
- f as default
4
- };