intor 2.3.25 → 2.3.26
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.
|
@@ -7,6 +7,7 @@ export { clearLoggerPool } from '../src/core/logger/global-logger-pool.js';
|
|
|
7
7
|
export { isValidMessages } from '../src/core/messages/utils/is-valid-messages.js';
|
|
8
8
|
export { clearMessagesPool } from '../src/core/messages/global-messages-pool.js';
|
|
9
9
|
export { mergeMessages } from '../src/core/messages/merge-messages.js';
|
|
10
|
+
export { INTOR_MESSAGES_KIND, INTOR_MESSAGES_KIND_KEY, INTOR_PREFIX, getMessagesKind } from '../src/core/messages/internal-metadata.js';
|
|
10
11
|
export { defineIntorConfig } from '../src/config/define-intor-config.js';
|
|
11
12
|
import '../src/config/constants/cookie.js';
|
|
12
13
|
export { localizePathname } from '../src/routing/pathname/localize-pathname.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const INTOR_PREFIX = "__intor_";
|
|
2
|
+
const INTOR_MESSAGES_KIND_KEY = `${INTOR_PREFIX}kind`;
|
|
3
|
+
const INTOR_MESSAGES_KIND = {
|
|
4
|
+
markdown: "markdown",
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Read the Intor internal kind from a message container.
|
|
8
|
+
*/
|
|
9
|
+
function getMessagesKind(value) {
|
|
10
|
+
if (!value || typeof value !== "object")
|
|
11
|
+
return;
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
|
+
return value[INTOR_MESSAGES_KIND_KEY];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { INTOR_MESSAGES_KIND, INTOR_MESSAGES_KIND_KEY, INTOR_PREFIX, getMessagesKind };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PREFIX_PLACEHOLDER, IntorError, IntorErrorCode, deepMerge, type DeepMergeOverrideEvent, resolveLoaderOptions, clearLoggerPool, clearMessagesPool, mergeMessages, isValidMessages, type MessagesReader, type MessagesReaders, } from "../src/core";
|
|
1
|
+
export { PREFIX_PLACEHOLDER, IntorError, IntorErrorCode, deepMerge, type DeepMergeOverrideEvent, resolveLoaderOptions, clearLoggerPool, clearMessagesPool, mergeMessages, isValidMessages, type MessagesReader, type MessagesReaders, INTOR_PREFIX, INTOR_MESSAGES_KIND_KEY, INTOR_MESSAGES_KIND, getMessagesKind, type IntorMessagesKind, } from "../src/core";
|
|
2
2
|
export { defineIntorConfig, type IntorRawConfig, type IntorResolvedConfig, } from "../src/config";
|
|
3
3
|
export { localizePathname } from "../src/routing";
|
|
4
4
|
export { Translator, type TranslatorPlugin, type TranslateContext, type TranslateHook, type TranslateHandlers, type HandlerContext, type FormatHandler, type LoadingHandler, type MissingHandler, type LocaleMessages, type MessageObject, type MessageValue, tokenize, type Token, } from "intor-translator";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { INTOR_GENERATED_KEY, GenConfigKeys, GenConfig, GenMessages, GenLocale, TranslatorInstance, } from "../../src/core";
|
|
2
|
+
export type { TranslatorInstanceReact } from "../../src/client/react/translator/translator-instance";
|