@prefabs.tech/vue3-i18n 0.34.1 → 0.35.2
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,7 +1,7 @@
|
|
|
1
1
|
import { createI18n as e, useI18n as t, useI18n as n } from "vue-i18n";
|
|
2
2
|
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, toValue as v, unref as y, watch as b } from "vue";
|
|
3
3
|
import { useConfig as x } from "@prefabs.tech/vue3-config";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.
|
|
4
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.43_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
5
5
|
var S = typeof window < "u" && typeof document < "u";
|
|
6
6
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7
7
|
var C = Object.prototype.toString, w = (e) => C.call(e) === "[object Object]", T = () => {}, E = /* @__PURE__ */ D();
|
|
@@ -19,7 +19,7 @@ function k(e, t, n) {
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.
|
|
22
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.43_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
23
23
|
var A = S ? window : void 0;
|
|
24
24
|
S && window.document, S && window.navigator, S && window.location;
|
|
25
25
|
function j(e) {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { AppConfig } from "@prefabs.tech/vue3-config";
|
|
2
2
|
import type { App, Plugin } from "vue";
|
|
3
|
-
import type { I18nOptions,
|
|
3
|
+
import type { I18nOptions, Locale, LocaleMessageValue, VueMessageType } from "vue-i18n";
|
|
4
4
|
import { useI18n } from "vue-i18n";
|
|
5
5
|
import LocaleSwitcher from "./locale-switcher/Index.vue";
|
|
6
6
|
import useLocaleStore from "./store";
|
|
7
7
|
import { getPreferredLocale, prependMessages } from "./utilities";
|
|
8
|
+
type LocaleMessages<Message = VueMessageType> = Record<Locale, Record<string, LocaleMessageValue<Message>>>;
|
|
8
9
|
declare const createI18n: (options: DzangolabVueI18nPluginOptions) => Plugin;
|
|
9
10
|
declare const plugin: {
|
|
10
11
|
install: (app: App, options: {
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,kBAAkB,EAClB,cAAc,EACf,MAAM,UAAU,CAAC;AAElB,OAAO,EAAgC,OAAO,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,cAAc,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,kBAAkB,EAClB,eAAe,EAChB,MAAM,aAAa,CAAC;AAGrB,KAAK,cAAc,CAAC,OAAO,GAAG,cAAc,IAAI,MAAM,CACpD,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAC5C,CAAC;AAEF,QAAA,MAAM,UAAU,GAAI,SAAS,6BAA6B,KAAG,MA+B5D,CAAC;AAEF,QAAA,MAAM,MAAM;mBACK,GAAG,WAAW;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE,KAAG,IAAI;CAK1D,CAAC;AAEF,KAAK,oBAAoB,GAAG,WAAW,GAAG;IACxC,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF,UAAU,6BAA6B;IACrC,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,OAAO,QAAQ,2BAA2B,CAAC;IACzC,UAAiB,SAAS;QACxB,IAAI,EAAE,oBAAoB,CAAC;KAC5B;CACF;AAED,eAAe,MAAM,CAAC;AAEtB,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,OAAO,EACP,cAAc,GACf,CAAC;AAEF,YAAY,EACV,oBAAoB,EACpB,6BAA6B,EAC7B,cAAc,EACd,cAAc,GACf,CAAC"}
|
package/dist/src/utilities.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Locale, LocaleMessageValue, VueMessageType } from "vue-i18n";
|
|
2
|
+
type LocaleMessages<Message = VueMessageType> = Record<Locale, Record<string, LocaleMessageValue<Message>>>;
|
|
2
3
|
declare const getLocaleNames: (supportedLocales: string[]) => LocaleMessages<VueMessageType>;
|
|
3
4
|
declare const getPreferredLocale: (languages: readonly string[], locales: string[]) => string | undefined;
|
|
4
|
-
declare const prependMessages: (messages: LocaleMessages
|
|
5
|
+
declare const prependMessages: (messages: LocaleMessages, defaults: LocaleMessages | undefined) => LocaleMessages;
|
|
5
6
|
export { getLocaleNames, getPreferredLocale, prependMessages };
|
|
6
7
|
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK3E,KAAK,cAAc,CAAC,OAAO,GAAG,cAAc,IAAI,MAAM,CACpD,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAC5C,CAAC;AAEF,QAAA,MAAM,cAAc,GAAI,kBAAkB,MAAM,EAAE,mCAUjD,CAAC;AAEF,QAAA,MAAM,kBAAkB,GACtB,WAAW,SAAS,MAAM,EAAE,EAC5B,SAAS,MAAM,EAAE,KAChB,MAAM,GAAG,SAsBX,CAAC;AAEF,QAAA,MAAM,eAAe,GACnB,UAAU,cAAc,EACxB,UAAU,cAAc,GAAG,SAAS,KACnC,cAoCF,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,eAAe,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefabs.tech/vue3-i18n",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.2",
|
|
4
4
|
"description": "Vue3 I18n Plugin",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/prefabs-tech/vue.git",
|
|
8
|
+
"directory": "packages/vue-i18n"
|
|
9
|
+
},
|
|
5
10
|
"type": "module",
|
|
6
11
|
"exports": {
|
|
7
12
|
".": {
|
|
@@ -18,17 +23,17 @@
|
|
|
18
23
|
"dist"
|
|
19
24
|
],
|
|
20
25
|
"dependencies": {
|
|
21
|
-
"vue-i18n": "
|
|
26
|
+
"vue-i18n": "11.4.13"
|
|
22
27
|
},
|
|
23
28
|
"devDependencies": {
|
|
24
29
|
"@prefabs.tech/eslint-config": "0.8.7",
|
|
25
30
|
"@prefabs.tech/stylelint-config": "0.8.7",
|
|
26
31
|
"@prefabs.tech/tsconfig": "0.8.7",
|
|
27
|
-
"@prefabs.tech/vue3-config": "0.
|
|
32
|
+
"@prefabs.tech/vue3-config": "0.35.2",
|
|
28
33
|
"@types/node": "26.1.1",
|
|
29
34
|
"@vitejs/plugin-vue": "6.0.8",
|
|
30
35
|
"@vitejs/plugin-vue-jsx": "5.1.6",
|
|
31
|
-
"@vitest/coverage-istanbul": "4.1.
|
|
36
|
+
"@vitest/coverage-istanbul": "4.1.11",
|
|
32
37
|
"@vue/test-utils": "2.4.11",
|
|
33
38
|
"@vueuse/core": "14.3.0",
|
|
34
39
|
"eslint": "10.7.0",
|
|
@@ -40,12 +45,12 @@
|
|
|
40
45
|
"stylelint-order": "8.1.1",
|
|
41
46
|
"typescript": "6.0.3",
|
|
42
47
|
"vite": "8.1.5",
|
|
43
|
-
"vitest": "4.1.
|
|
44
|
-
"vue": "3.5.
|
|
48
|
+
"vitest": "4.1.11",
|
|
49
|
+
"vue": "3.5.43",
|
|
45
50
|
"vue-tsc": "3.3.7"
|
|
46
51
|
},
|
|
47
52
|
"peerDependencies": {
|
|
48
|
-
"@prefabs.tech/vue3-config": "0.
|
|
53
|
+
"@prefabs.tech/vue3-config": "0.35.2",
|
|
49
54
|
"@vueuse/core": ">=14.3.0",
|
|
50
55
|
"pinia": ">=4.0",
|
|
51
56
|
"vue": ">=3.5"
|