@intlayer/react-intl 9.9.3-canary.0 → 9.9.3
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";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
import { log } from "@intlayer/config/built";
|
|
8
9
|
import { CYAN } from "@intlayer/config/colors";
|
|
9
10
|
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 { getIntlayer } from "@intlayer/core/interpreter";
|
|
2
1
|
import { createMessageResolver, icuToIntlayerFormatter, navigatePath, parseTaggedMessage } from "@intlayer/core/messageFormat";
|
|
3
2
|
import { Fragment } from "react";
|
|
3
|
+
import { getIntlayer } from "@intlayer/core/interpreter";
|
|
4
4
|
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
// src/createIntlObject.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import { IntlShape, MessageDescriptor, PrimitiveType } from "react-intl";
|
|
3
2
|
import { GetNestingResult } from "@intlayer/core/interpreter";
|
|
4
3
|
import { ValidDotPathsFor } from "@intlayer/core/transpiler";
|
|
5
4
|
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,6 +1,6 @@
|
|
|
1
1
|
import { DictionaryIntlShape } from "./dictionaryIntlShape.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
|
* Builds the id lookup of a dictionary-bound intl object.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DictionaryIntlShape } from "./dictionaryIntlShape.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
|
* Dynamic dictionary-accepting variant of `useIntl`.
|
|
6
6
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/react-intl",
|
|
3
|
-
"version": "9.9.3
|
|
3
|
+
"version": "9.9.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "react-intl API adapter for intlayer — drop-in compatibility layer",
|
|
6
6
|
"keywords": [
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@intlayer/config": "9.9.3
|
|
79
|
-
"@intlayer/core": "9.9.3
|
|
80
|
-
"@intlayer/dictionaries-entry": "9.9.3
|
|
81
|
-
"@intlayer/engine": "9.9.3
|
|
82
|
-
"@intlayer/types": "9.9.3
|
|
83
|
-
"react-intlayer": "9.9.3
|
|
84
|
-
"vite-intlayer": "9.9.3
|
|
78
|
+
"@intlayer/config": "9.9.3",
|
|
79
|
+
"@intlayer/core": "9.9.3",
|
|
80
|
+
"@intlayer/dictionaries-entry": "9.9.3",
|
|
81
|
+
"@intlayer/engine": "9.9.3",
|
|
82
|
+
"@intlayer/types": "9.9.3",
|
|
83
|
+
"react-intlayer": "9.9.3",
|
|
84
|
+
"vite-intlayer": "9.9.3"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@types/node": "^26",
|