@koine/i18n 2.0.0-beta.120 → 2.0.0-beta.121
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/adapter-js/code/getI18nMetadata.d.ts +1 -1
- package/adapter-js/code/to.d.ts +1 -1
- package/adapter-next/code/I18nPage.d.ts +1 -1
- package/adapter-next/code/i18nGet.d.ts +1 -1
- package/adapter-next/code/useTo.d.ts +1 -1
- package/adapter-next/plugin-async.d.ts +1 -1
- package/adapter-next/plugin-shared.d.ts +2 -2
- package/adapter-next/plugin.d.ts +1 -1
- package/adapter-react/code/getTo.d.ts +1 -1
- package/api.cjs.js +160 -145
- package/api.esm.js +160 -145
- package/compiler/types.d.ts +3 -0
- package/compiler-worker.cjs.js +0 -1
- package/compiler-worker.esm.js +0 -1
- package/compiler.cjs.js +0 -1
- package/compiler.esm.js +0 -1
- package/next.cjs.js +42 -11
- package/next.esm.js +44 -13
- package/package.json +3 -3
package/adapter-js/code/to.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { I18nCompiler } from "../../compiler/types";
|
|
2
|
-
declare const _default: ({ config: { single }, options: { routes: { localeParamName }, }, }: I18nCompiler.AdapterArg<"next">) => string;
|
|
2
|
+
declare const _default: ({ config: { single }, options: { routes: { localeParamName }, }, routes: { dynamicRoutes }, }: I18nCompiler.AdapterArg<"next">) => string;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { I18nCompiler } from "../../compiler/types";
|
|
2
|
-
declare const _default: ({ options: { routes: { localeParamName }, }, }: I18nCompiler.AdapterArg<"next">) => string;
|
|
2
|
+
declare const _default: ({ routes: { dynamicRoutes }, options: { routes: { localeParamName }, }, }: I18nCompiler.AdapterArg<"next">) => string;
|
|
3
3
|
export default _default;
|
|
@@ -4,5 +4,5 @@ type NextConfigFn = (phase: string, context?: any) => Promise<NextConfig> | Next
|
|
|
4
4
|
export type WithI18nAsyncOptions = NextConfig & {
|
|
5
5
|
i18nCompiler?: I18nCompilerOptions;
|
|
6
6
|
};
|
|
7
|
-
export declare let withI18nAsync:
|
|
7
|
+
export declare let withI18nAsync: (config?: WithI18nAsyncOptions) => NextConfigFn;
|
|
8
8
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextConfig } from "next";
|
|
2
|
-
import type { I18nCompilerReturn } from "../compiler";
|
|
3
|
-
export declare let tweakNextConfig: (options: I18nCompilerReturn, nextConfig: NextConfig) => NextConfig;
|
|
2
|
+
import type { I18nCompilerOptions, I18nCompilerReturn } from "../compiler";
|
|
3
|
+
export declare let tweakNextConfig: (options: I18nCompilerOptions, result: I18nCompilerReturn, nextConfig: NextConfig) => NextConfig;
|
|
4
4
|
export declare let getRedirects: (prevRedirects: NextConfig["redirects"], i18nResult: I18nCompilerReturn) => Promise<import("next/dist/lib/load-custom-routes").Redirect[]>;
|
|
5
5
|
export declare let getRewrites: (prevRewrites: NextConfig["rewrites"], i18nResult: I18nCompilerReturn) => Promise<{
|
|
6
6
|
beforeFiles: import("next/dist/lib/load-custom-routes").Rewrite[];
|
package/adapter-next/plugin.d.ts
CHANGED