@intlayer/vue-i18n 9.7.1 → 9.7.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,12 +1,12 @@
1
1
  import { formatDateValue, formatNumberValue } from "./formats.mjs";
2
2
  import { parseTranslateArguments, resolveVueMessage } from "./resolveVueMessage.mjs";
3
+ import { navigatePath } from "@intlayer/core/messageFormat";
4
+ import { computed, inject } from "vue";
5
+ import { INTLAYER_SYMBOL, createIntlayerClient, installIntlayer, useLocale } from "vue-intlayer";
3
6
  import { internationalization, log } from "@intlayer/config/built";
4
7
  import * as ANSIColors from "@intlayer/config/colors";
5
8
  import { colorize, getAppLogger } from "@intlayer/config/logger";
6
9
  import { getIntlayer } from "@intlayer/core/interpreter";
7
- import { navigatePath } from "@intlayer/core/messageFormat";
8
- import { computed, inject } from "vue";
9
- import { INTLAYER_SYMBOL, createIntlayerClient, installIntlayer, useLocale } from "vue-intlayer";
10
10
 
11
11
  // src/createI18n.ts
12
12
  const VERSION = "9.13.1";
@@ -1,7 +1,7 @@
1
1
  import { DictionaryKeys } from "@intlayer/types/module_augmentation";
2
- import { WritableComputedRef } from "vue";
3
2
  import { GetNestingResult } from "@intlayer/core/interpreter";
4
3
  import { ValidDotPathsFor } from "@intlayer/core/transpiler";
4
+ import { WritableComputedRef } from "vue";
5
5
  /**
6
6
  * The interpreter-resolved content type at dot-path `P` of dictionary `N` —
7
7
  * the same type strength as the base `useIntlayer` hook.
@@ -1,6 +1,6 @@
1
1
  import { ScopedComposer, TypedComposer } from "./typedComposer.js";
2
- import { DictionaryKeys } from "@intlayer/types/module_augmentation";
3
2
  import { Dictionary } from "@intlayer/types/dictionary";
3
+ import { DictionaryKeys } from "@intlayer/types/module_augmentation";
4
4
  /**
5
5
  * Overload set for {@link useDictionary}: without a `namespace` option the
6
6
  * composer is typed against the dictionary's dot-paths; with one (the
@@ -1,6 +1,6 @@
1
1
  import { ScopedComposer, TypedComposer } from "./typedComposer.js";
2
- import { DictionaryKeys, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
3
2
  import { Dictionary } from "@intlayer/types/dictionary";
3
+ import { DictionaryKeys, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
4
4
  /**
5
5
  * Overload set for {@link useDictionaryDynamic}: without a `namespace` option
6
6
  * the composer is typed against the dictionary's dot-paths; with one (the
package/package.json CHANGED
@@ -1,24 +1,20 @@
1
1
  {
2
2
  "name": "@intlayer/vue-i18n",
3
- "version": "9.7.1",
3
+ "version": "9.7.2",
4
4
  "private": false,
5
5
  "description": "vue-i18n API adapter for intlayer — useI18n, createI18n, and installIntlayer backed by vue-intlayer",
6
6
  "keywords": [
7
+ "adapter",
8
+ "compatibility",
9
+ "i18n",
7
10
  "intlayer",
8
- "vue-i18n",
9
11
  "vue",
10
- "i18n",
11
- "adapter",
12
- "compatibility"
12
+ "vue-i18n"
13
13
  ],
14
14
  "homepage": "https://intlayer.org",
15
15
  "bugs": {
16
16
  "url": "https://github.com/aymericzip/intlayer/issues"
17
17
  },
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/aymericzip/intlayer.git"
21
- },
22
18
  "license": "Apache-2.0",
23
19
  "author": {
24
20
  "name": "Aymeric PINEAU",
@@ -31,7 +27,25 @@
31
27
  "url": "https://github.com/aymericzip"
32
28
  }
33
29
  ],
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/aymericzip/intlayer.git"
33
+ },
34
+ "files": [
35
+ "./dist",
36
+ "./package.json"
37
+ ],
34
38
  "sideEffects": false,
39
+ "main": "dist/esm/index.mjs",
40
+ "module": "dist/esm/index.mjs",
41
+ "types": "dist/types/index.d.ts",
42
+ "typesVersions": {
43
+ "*": {
44
+ "plugin": [
45
+ "./dist/types/plugin/index.d.ts"
46
+ ]
47
+ }
48
+ },
35
49
  "exports": {
36
50
  ".": {
37
51
  "types": "./dist/types/index.d.ts",
@@ -43,29 +57,15 @@
43
57
  },
44
58
  "./package.json": "./package.json"
45
59
  },
46
- "main": "dist/esm/index.mjs",
47
- "module": "dist/esm/index.mjs",
48
- "types": "dist/types/index.d.ts",
49
- "typesVersions": {
50
- "*": {
51
- "plugin": [
52
- "./dist/types/plugin/index.d.ts"
53
- ]
54
- }
55
- },
56
- "files": [
57
- "./dist",
58
- "./package.json"
59
- ],
60
60
  "scripts": {
61
61
  "build": "bun --bun tsdown --config tsdown.config.ts",
62
62
  "build:ci": "bun --bun tsdown --config tsdown.config.ts",
63
63
  "clean": "bun --bun rimraf ./dist .turbo",
64
64
  "dev": "bun --bun tsdown --config tsdown.config.ts --watch",
65
- "format": "bun --bun biome format . --check",
66
- "format:fix": "bun --bun biome format --write .",
67
- "lint": "bun --bun biome lint .",
68
- "lint:fix": "bun --bun biome lint --write .",
65
+ "format": "oxfmt --check .",
66
+ "format:fix": "oxfmt .",
67
+ "lint": "oxlint .",
68
+ "lint:fix": "oxlint --fix .",
69
69
  "prepublish": "cp -f ../../README.md ./README.md",
70
70
  "publish": "bun publish || true",
71
71
  "publish:canary": "bun publish --access public --tag canary || true",
@@ -76,23 +76,23 @@
76
76
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
77
77
  },
78
78
  "dependencies": {
79
- "@intlayer/config": "9.7.1",
80
- "@intlayer/core": "9.7.1",
81
- "@intlayer/dictionaries-entry": "9.7.1",
82
- "@intlayer/engine": "9.7.1",
83
- "@intlayer/types": "9.7.1",
84
- "vite-intlayer": "9.7.1",
85
- "vue-intlayer": "9.7.1"
79
+ "@intlayer/config": "9.7.2",
80
+ "@intlayer/core": "9.7.2",
81
+ "@intlayer/dictionaries-entry": "9.7.2",
82
+ "@intlayer/engine": "9.7.2",
83
+ "@intlayer/types": "9.7.2",
84
+ "vite-intlayer": "9.7.2",
85
+ "vue-intlayer": "9.7.2"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@types/node": "^26",
89
89
  "@utils/ts-config": "1.0.4",
90
90
  "@utils/ts-config-types": "1.0.4",
91
91
  "@utils/tsdown-config": "1.0.4",
92
- "rimraf": "6.1.3",
93
- "tsdown": "0.23.4",
92
+ "rimraf": "6.1.4",
93
+ "tsdown": "0.23.7",
94
94
  "typescript": "7.0.2",
95
- "vite": "8.3.5",
95
+ "vite": "8.3.7",
96
96
  "vitest": "5.1.0",
97
97
  "vue": "3.5.44",
98
98
  "vue-i18n": "11.4.17"