@intlayer/react-intl 9.8.1 → 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.
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { IntlContext } from "./context.mjs";
|
|
4
4
|
import { createIntlObject } from "./createIntlObject.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
|
-
import { IntlayerProvider } from "react-intlayer";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { log } from "@intlayer/config/built";
|
|
9
8
|
import { CYAN } from "@intlayer/config/colors";
|
|
10
9
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
10
|
+
import { IntlayerProvider } from "react-intlayer";
|
|
11
11
|
|
|
12
12
|
// src/IntlProvider.tsx
|
|
13
13
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Fragment } from "react";
|
|
2
1
|
import { getIntlayer } from "@intlayer/core/interpreter";
|
|
3
2
|
import { createMessageResolver, icuToIntlayerFormatter, navigatePath, parseTaggedMessage } from "@intlayer/core/messageFormat";
|
|
3
|
+
import { Fragment } from "react";
|
|
4
4
|
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
// src/createIntlObject.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { createIntlObject } from "./createIntlObject.mjs";
|
|
4
|
+
import { navigatePath } from "@intlayer/core/messageFormat";
|
|
4
5
|
import { useMemo } from "react";
|
|
5
6
|
import { useDictionary as useDictionary$1, useLocale } from "react-intlayer";
|
|
6
|
-
import { navigatePath } from "@intlayer/core/messageFormat";
|
|
7
7
|
|
|
8
8
|
// src/useDictionary.ts
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { IntlShape, MessageDescriptor, PrimitiveType } from "react-intl";
|
|
1
3
|
import { GetNestingResult } from "@intlayer/core/interpreter";
|
|
2
4
|
import { ValidDotPathsFor } from "@intlayer/core/transpiler";
|
|
3
|
-
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
4
5
|
import { ReactNode } from "react";
|
|
5
|
-
import { IntlShape, MessageDescriptor, PrimitiveType } from "react-intl";
|
|
6
6
|
/**
|
|
7
7
|
* The interpreter-resolved content type at dot-path `P` of dictionary `N` —
|
|
8
8
|
* the same type strength as the base `useIntlayer` hook.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ValidDotPathsFor } from "@intlayer/core/transpiler";
|
|
2
1
|
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { ValidDotPathsFor } from "@intlayer/core/transpiler";
|
|
3
3
|
/**
|
|
4
4
|
* Every valid react-intl message id: `<dictionaryKey>.<dotPath>`, where the
|
|
5
5
|
* first segment designates the intlayer dictionary. Falls back to `string`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/react-intl",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "react-intl API adapter for intlayer — drop-in compatibility layer",
|
|
6
6
|
"keywords": [
|
|
@@ -75,17 +75,18 @@
|
|
|
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
|
-
"react-intlayer": "9.8.
|
|
84
|
-
"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
|
+
"react-intlayer": "9.8.2",
|
|
84
|
+
"vite-intlayer": "9.8.2"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@types/node": "^26",
|
|
88
88
|
"@types/react": "19.3.0",
|
|
89
|
+
"@utils/compat-api-parity": "1.0.0",
|
|
89
90
|
"@utils/ts-config": "1.0.4",
|
|
90
91
|
"@utils/ts-config-types": "1.0.4",
|
|
91
92
|
"@utils/tsdown-config": "1.0.4",
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
"tsdown": "0.23.7",
|
|
95
96
|
"typescript": "7.0.2",
|
|
96
97
|
"vite": "8.3.8",
|
|
97
|
-
"vitest": "5.1.
|
|
98
|
+
"vitest": "5.1.1"
|
|
98
99
|
},
|
|
99
100
|
"peerDependencies": {
|
|
100
101
|
"react": ">=16.0.0",
|