@intlayer/i18next 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.
- package/dist/esm/createInstance.mjs +2 -2
- package/dist/esm/getDictionary.mjs +1 -1
- package/dist/esm/getDictionaryDynamic.mjs +1 -1
- package/dist/types/getDictionary.d.ts +1 -1
- package/dist/types/getDictionaryDynamic.d.ts +1 -1
- package/dist/types/resolveTranslation.d.ts +2 -2
- package/dist/types/typedTranslation.d.ts +1 -1
- package/package.json +36 -36
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getInterpolationValues, resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
+
import { getIntlayer } from "@intlayer/core/interpreter";
|
|
3
|
+
import { navigatePath, resolveMessageNodeToString } from "@intlayer/core/messageFormat";
|
|
2
4
|
import { internationalization, log } from "@intlayer/config/built";
|
|
3
5
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
4
6
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
5
|
-
import { getIntlayer } from "@intlayer/core/interpreter";
|
|
6
7
|
import { getHTMLTextDir } from "@intlayer/core/localization";
|
|
7
|
-
import { navigatePath, resolveMessageNodeToString } from "@intlayer/core/messageFormat";
|
|
8
8
|
|
|
9
9
|
// src/createInstance.ts
|
|
10
10
|
const warnIgnoredResources = (location) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
-
import { internationalization } from "@intlayer/config/built";
|
|
3
2
|
import { getDictionary as getDictionary$1 } from "@intlayer/core/interpreter";
|
|
3
|
+
import { internationalization } from "@intlayer/config/built";
|
|
4
4
|
|
|
5
5
|
// src/getDictionary.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
-
import { internationalization } from "@intlayer/config/built";
|
|
3
2
|
import { getDictionary } from "@intlayer/core/interpreter";
|
|
3
|
+
import { internationalization } from "@intlayer/config/built";
|
|
4
4
|
|
|
5
5
|
// src/getDictionaryDynamic.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ScopedTFunction, TypedTFunction } from "./typedTranslation.js";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
2
|
import { DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
/**
|
|
5
5
|
* Overload set for {@link getDictionary}: without a key prefix the returned
|
|
6
6
|
* `t()` is typed against the dictionary's dot-paths; with a prefix the keys
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ScopedTFunction, TypedTFunction } from "./typedTranslation.js";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
2
|
import { DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
3
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
/**
|
|
5
5
|
* Overload set for {@link getDictionaryDynamic}: without a key prefix the
|
|
6
6
|
* returned `t()` is typed against the dictionary's dot-paths; with a prefix
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TOptions } from "i18next";
|
|
2
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
1
|
import { MessageValues } from "@intlayer/core/messageFormat";
|
|
2
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
|
+
import { TOptions } from "i18next";
|
|
4
4
|
/** Extracts interpolation values from i18next `t()` options. */
|
|
5
5
|
export declare const getInterpolationValues: (options?: TOptions) => MessageValues;
|
|
6
6
|
export type ResolveTranslationParams = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TOptions } from "i18next";
|
|
2
1
|
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { TOptions } from "i18next";
|
|
3
3
|
import { GetNestingResult } from "@intlayer/core/interpreter";
|
|
4
4
|
import { ValidDotPathsFor } from "@intlayer/core/transpiler";
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/i18next",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "i18next API adapter for intlayer — drop-in compatibility layer that exposes the i18next interface while using @intlayer/core under the hood",
|
|
6
6
|
"keywords": [
|
|
7
|
-
"intlayer",
|
|
8
|
-
"i18next",
|
|
9
|
-
"i18n",
|
|
10
7
|
"adapter",
|
|
11
|
-
"compatibility"
|
|
8
|
+
"compatibility",
|
|
9
|
+
"i18n",
|
|
10
|
+
"i18next",
|
|
11
|
+
"intlayer"
|
|
12
12
|
],
|
|
13
13
|
"homepage": "https://intlayer.org",
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/aymericzip/intlayer/issues"
|
|
16
16
|
},
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
20
|
-
},
|
|
21
17
|
"license": "Apache-2.0",
|
|
22
18
|
"author": {
|
|
23
19
|
"name": "Aymeric PINEAU",
|
|
@@ -30,7 +26,25 @@
|
|
|
30
26
|
"url": "https://github.com/aymericzip"
|
|
31
27
|
}
|
|
32
28
|
],
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"./dist",
|
|
35
|
+
"./package.json"
|
|
36
|
+
],
|
|
33
37
|
"sideEffects": false,
|
|
38
|
+
"main": "dist/esm/index.mjs",
|
|
39
|
+
"module": "dist/esm/index.mjs",
|
|
40
|
+
"types": "dist/types/index.d.ts",
|
|
41
|
+
"typesVersions": {
|
|
42
|
+
"*": {
|
|
43
|
+
"plugin": [
|
|
44
|
+
"./dist/types/plugin/index.d.ts"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
34
48
|
"exports": {
|
|
35
49
|
".": {
|
|
36
50
|
"types": "./dist/types/index.d.ts",
|
|
@@ -42,29 +56,15 @@
|
|
|
42
56
|
},
|
|
43
57
|
"./package.json": "./package.json"
|
|
44
58
|
},
|
|
45
|
-
"main": "dist/esm/index.mjs",
|
|
46
|
-
"module": "dist/esm/index.mjs",
|
|
47
|
-
"types": "dist/types/index.d.ts",
|
|
48
|
-
"typesVersions": {
|
|
49
|
-
"*": {
|
|
50
|
-
"plugin": [
|
|
51
|
-
"./dist/types/plugin/index.d.ts"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"files": [
|
|
56
|
-
"./dist",
|
|
57
|
-
"./package.json"
|
|
58
|
-
],
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "bun --bun tsdown --config tsdown.config.ts",
|
|
61
61
|
"build:ci": "bun --bun tsdown --config tsdown.config.ts",
|
|
62
62
|
"clean": "bun --bun rimraf ./dist .turbo",
|
|
63
63
|
"dev": "bun --bun tsdown --config tsdown.config.ts --watch",
|
|
64
|
-
"format": "
|
|
65
|
-
"format:fix": "
|
|
66
|
-
"lint": "
|
|
67
|
-
"lint:fix": "
|
|
64
|
+
"format": "oxfmt --check .",
|
|
65
|
+
"format:fix": "oxfmt .",
|
|
66
|
+
"lint": "oxlint .",
|
|
67
|
+
"lint:fix": "oxlint --fix .",
|
|
68
68
|
"prepublish": "cp -f ../../README.md ./README.md",
|
|
69
69
|
"publish": "bun publish || true",
|
|
70
70
|
"publish:canary": "bun publish --access public --tag canary || true",
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@intlayer/config": "9.7.
|
|
79
|
-
"@intlayer/core": "9.7.
|
|
80
|
-
"@intlayer/dictionaries-entry": "9.7.
|
|
81
|
-
"@intlayer/engine": "9.7.
|
|
82
|
-
"@intlayer/types": "9.7.
|
|
83
|
-
"vite-intlayer": "9.7.
|
|
78
|
+
"@intlayer/config": "9.7.2",
|
|
79
|
+
"@intlayer/core": "9.7.2",
|
|
80
|
+
"@intlayer/dictionaries-entry": "9.7.2",
|
|
81
|
+
"@intlayer/engine": "9.7.2",
|
|
82
|
+
"@intlayer/types": "9.7.2",
|
|
83
|
+
"vite-intlayer": "9.7.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@types/node": "^26",
|
|
@@ -88,10 +88,10 @@
|
|
|
88
88
|
"@utils/ts-config-types": "1.0.4",
|
|
89
89
|
"@utils/tsdown-config": "1.0.4",
|
|
90
90
|
"i18next": "26.7.1",
|
|
91
|
-
"rimraf": "6.1.
|
|
92
|
-
"tsdown": "0.23.
|
|
91
|
+
"rimraf": "6.1.4",
|
|
92
|
+
"tsdown": "0.23.7",
|
|
93
93
|
"typescript": "7.0.2",
|
|
94
|
-
"vite": "8.3.
|
|
94
|
+
"vite": "8.3.7",
|
|
95
95
|
"vitest": "5.1.0"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|