vuetify-nuxt-module 0.18.8 → 0.18.9
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/i18n.js +7 -2
- package/package.json +3 -3
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import { transformAssetUrls } from 'vite-plugin-vuetify';
|
|
|
16
16
|
import { parseQuery, parseURL } from 'ufo';
|
|
17
17
|
import destr from 'destr';
|
|
18
18
|
|
|
19
|
-
const version = "0.18.
|
|
19
|
+
const version = "0.18.9";
|
|
20
20
|
|
|
21
21
|
const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
|
|
22
22
|
const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `\0${VIRTUAL_VUETIFY_CONFIGURATION}`;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { ref, watch } from "vue";
|
|
1
|
+
import { ref, watch, toRef } from "vue";
|
|
2
2
|
import { useI18n } from "vue-i18n";
|
|
3
3
|
import { useNuxtApp } from "#imports";
|
|
4
|
+
function inferDecimalSeparator(n) {
|
|
5
|
+
return n(0.1).includes(",") ? "," : ".";
|
|
6
|
+
}
|
|
4
7
|
export function createAdapter(vuetifyOptions) {
|
|
5
8
|
vuetifyOptions.locale = {};
|
|
6
9
|
const nuxtApp = useNuxtApp();
|
|
@@ -27,7 +30,8 @@ export function createAdapter(vuetifyOptions) {
|
|
|
27
30
|
messages,
|
|
28
31
|
t: (key, ...params) => i18n.t(key, params),
|
|
29
32
|
n: i18n.n,
|
|
30
|
-
provide: createProvideFunction({ current: currentLocale, fallback, messages })
|
|
33
|
+
provide: createProvideFunction({ current: currentLocale, fallback, messages }),
|
|
34
|
+
decimalSeparator: toRef(() => inferDecimalSeparator(i18n.n))
|
|
31
35
|
};
|
|
32
36
|
}
|
|
33
37
|
function createProvideFunction(data) {
|
|
@@ -54,6 +58,7 @@ function createProvideFunction(data) {
|
|
|
54
58
|
messages: data.messages,
|
|
55
59
|
t,
|
|
56
60
|
n,
|
|
61
|
+
decimalSeparator: toRef(() => props.decimalSeparator ?? inferDecimalSeparator(n)),
|
|
57
62
|
provide: createProvideFunction({ current: currentLocale, fallback: data.fallback, messages: data.messages })
|
|
58
63
|
};
|
|
59
64
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuetify-nuxt-module",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.9",
|
|
5
5
|
"description": "Zero-Config Nuxt Module for Vuetify",
|
|
6
6
|
"author": "userquin <userquin@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"ufo": "^1.5.4",
|
|
51
51
|
"unconfig": "^0.5.5",
|
|
52
52
|
"upath": "^2.0.1",
|
|
53
|
-
"vite-plugin-vuetify": "^2.1.
|
|
53
|
+
"vite-plugin-vuetify": "^2.1.2",
|
|
54
54
|
"vuetify": "^3.7.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"sass": "^1.77.8",
|
|
81
81
|
"typescript": "^5.5.4",
|
|
82
82
|
"vite": "^5.0.12",
|
|
83
|
-
"vitest": "^2.
|
|
83
|
+
"vitest": "^3.2.4",
|
|
84
84
|
"vue-tsc": "^2.0.29"
|
|
85
85
|
},
|
|
86
86
|
"resolutions": {
|