@intlayer/i18next 9.8.0 → 9.8.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 +1 -1
- 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 +1 -1
- package/dist/types/typedTranslation.d.ts +1 -1
- package/package.json +10 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getInterpolationValues, resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
+
import { internationalization, log } from "@intlayer/config/built";
|
|
2
3
|
import { getIntlayer } from "@intlayer/core/interpreter";
|
|
3
4
|
import { navigatePath, resolveMessageNodeToString } from "@intlayer/core/messageFormat";
|
|
4
|
-
import { internationalization, log } from "@intlayer/config/built";
|
|
5
5
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
6
6
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
7
7
|
import { getHTMLTextDir } from "@intlayer/core/localization";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
-
import { getDictionary as getDictionary$1 } from "@intlayer/core/interpreter";
|
|
3
2
|
import { internationalization } from "@intlayer/config/built";
|
|
3
|
+
import { getDictionary as getDictionary$1 } from "@intlayer/core/interpreter";
|
|
4
4
|
|
|
5
5
|
// src/getDictionary.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveTranslation } from "./resolveTranslation.mjs";
|
|
2
|
-
import { getDictionary } from "@intlayer/core/interpreter";
|
|
3
2
|
import { internationalization } from "@intlayer/config/built";
|
|
3
|
+
import { getDictionary } from "@intlayer/core/interpreter";
|
|
4
4
|
|
|
5
5
|
// src/getDictionaryDynamic.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ScopedTFunction, TypedTFunction } from "./typedTranslation.js";
|
|
2
|
-
import { DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
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 { DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
3
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
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 { MessageValues } from "@intlayer/core/messageFormat";
|
|
2
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
2
|
import { TOptions } from "i18next";
|
|
3
|
+
import { MessageValues } from "@intlayer/core/messageFormat";
|
|
4
4
|
/** Extracts interpolation values from i18next `t()` options. */
|
|
5
5
|
export declare const getInterpolationValues: (options?: TOptions) => MessageValues;
|
|
6
6
|
export type ResolveTranslationParams = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import { TOptions } from "i18next";
|
|
3
2
|
import { GetNestingResult } from "@intlayer/core/interpreter";
|
|
4
3
|
import { ValidDotPathsFor } from "@intlayer/core/transpiler";
|
|
4
|
+
import { TOptions } from "i18next";
|
|
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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/i18next",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.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": [
|
|
@@ -75,24 +75,25 @@
|
|
|
75
75
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@intlayer/config": "9.8.
|
|
79
|
-
"@intlayer/core": "9.8.
|
|
80
|
-
"@intlayer/dictionaries-entry": "9.8.
|
|
81
|
-
"@intlayer/engine": "9.8.
|
|
82
|
-
"@intlayer/types": "9.8.
|
|
83
|
-
"vite-intlayer": "9.8.
|
|
78
|
+
"@intlayer/config": "9.8.2",
|
|
79
|
+
"@intlayer/core": "9.8.2",
|
|
80
|
+
"@intlayer/dictionaries-entry": "9.8.2",
|
|
81
|
+
"@intlayer/engine": "9.8.2",
|
|
82
|
+
"@intlayer/types": "9.8.2",
|
|
83
|
+
"vite-intlayer": "9.8.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@types/node": "^26",
|
|
87
|
+
"@utils/compat-api-parity": "1.0.0",
|
|
87
88
|
"@utils/ts-config": "1.0.4",
|
|
88
89
|
"@utils/ts-config-types": "1.0.4",
|
|
89
90
|
"@utils/tsdown-config": "1.0.4",
|
|
90
|
-
"i18next": "
|
|
91
|
+
"i18next": "27.2.1",
|
|
91
92
|
"rimraf": "6.1.4",
|
|
92
93
|
"tsdown": "0.23.7",
|
|
93
94
|
"typescript": "7.0.2",
|
|
94
95
|
"vite": "8.3.8",
|
|
95
|
-
"vitest": "5.1.
|
|
96
|
+
"vitest": "5.1.1"
|
|
96
97
|
},
|
|
97
98
|
"peerDependencies": {
|
|
98
99
|
"i18next": ">=20.0.0",
|