intor 1.0.4 → 1.0.5
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/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -286,4 +286,12 @@ declare const resolvePreferredLocale: (acceptLanguageHeader: string | undefined,
|
|
|
286
286
|
*/
|
|
287
287
|
declare const mergeStaticAndDynamicMessages: (staticMessages?: LocaleNamespaceMessages, dynamicMessages?: LocaleNamespaceMessages) => LocaleNamespaceMessages;
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
type IntorAdapterRuntime = (options: {
|
|
290
|
+
config: IntorResolvedConfig;
|
|
291
|
+
request?: unknown;
|
|
292
|
+
}) => Promise<{
|
|
293
|
+
locale: Locale;
|
|
294
|
+
pathname: string;
|
|
295
|
+
}>;
|
|
296
|
+
|
|
297
|
+
export { type FetchApiMessagesOptions, type IntorAdapterRuntime, IntorError, IntorErrorCode, type IntorResolvedConfig, type LoaderOptions, type ResolvedCookieOptions, defineIntorConfig, extractPathname, fetchApiMessages, intor, loadLocalMessages, mergeStaticAndDynamicMessages, normalizeLocale, normalizePathname, resolveNamespaces, resolvePreferredLocale, standardizePathname };
|
package/dist/index.d.ts
CHANGED
|
@@ -286,4 +286,12 @@ declare const resolvePreferredLocale: (acceptLanguageHeader: string | undefined,
|
|
|
286
286
|
*/
|
|
287
287
|
declare const mergeStaticAndDynamicMessages: (staticMessages?: LocaleNamespaceMessages, dynamicMessages?: LocaleNamespaceMessages) => LocaleNamespaceMessages;
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
type IntorAdapterRuntime = (options: {
|
|
290
|
+
config: IntorResolvedConfig;
|
|
291
|
+
request?: unknown;
|
|
292
|
+
}) => Promise<{
|
|
293
|
+
locale: Locale;
|
|
294
|
+
pathname: string;
|
|
295
|
+
}>;
|
|
296
|
+
|
|
297
|
+
export { type FetchApiMessagesOptions, type IntorAdapterRuntime, IntorError, IntorErrorCode, type IntorResolvedConfig, type LoaderOptions, type ResolvedCookieOptions, defineIntorConfig, extractPathname, fetchApiMessages, intor, loadLocalMessages, mergeStaticAndDynamicMessages, normalizeLocale, normalizePathname, resolveNamespaces, resolvePreferredLocale, standardizePathname };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "A modular and extensible i18n core designed for TypeScript and JavaScript projects. Intor enables custom translation logic with support for both frontend and backend environments, featuring runtime configuration, caching, adapters, and message loaders.",
|
|
5
5
|
"author": "Yiming Liao",
|
|
6
6
|
"license": "MIT",
|