@koine/i18n 2.0.0-beta.100

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.
Files changed (149) hide show
  1. package/README.md +1 -0
  2. package/adapter-js/code/config.cjs.d.ts +3 -0
  3. package/adapter-js/code/config.d.ts +3 -0
  4. package/adapter-js/code/createT.d.ts +3 -0
  5. package/adapter-js/code/defaultI18nMetadata.d.ts +3 -0
  6. package/adapter-js/code/defaultLocale.d.ts +3 -0
  7. package/adapter-js/code/formatUrl.d.ts +3 -0
  8. package/adapter-js/code/getI18nAlternatesFromDom.d.ts +3 -0
  9. package/adapter-js/code/getI18nDictionaries.d.ts +3 -0
  10. package/adapter-js/code/getI18nMetadata.d.ts +3 -0
  11. package/adapter-js/code/getT.d.ts +3 -0
  12. package/adapter-js/code/index.d.ts +3 -0
  13. package/adapter-js/code/isLocale.d.ts +3 -0
  14. package/adapter-js/code/loadTranslations.d.ts +3 -0
  15. package/adapter-js/code/locales.d.ts +3 -0
  16. package/adapter-js/code/pathnameToRouteId.d.ts +3 -0
  17. package/adapter-js/code/routes.d.ts +3 -0
  18. package/adapter-js/code/routesError.d.ts +3 -0
  19. package/adapter-js/code/routesSlim.d.ts +3 -0
  20. package/adapter-js/code/routesSpa.d.ts +3 -0
  21. package/adapter-js/code/t.d.ts +3 -0
  22. package/adapter-js/code/tInterpolateParams.d.ts +3 -0
  23. package/adapter-js/code/tPluralise.d.ts +3 -0
  24. package/adapter-js/code/to.d.ts +3 -0
  25. package/adapter-js/code/toFns.d.ts +3 -0
  26. package/adapter-js/code/toFormat.d.ts +3 -0
  27. package/adapter-js/code/toSpa.d.ts +3 -0
  28. package/adapter-js/code/types.d.ts +3 -0
  29. package/adapter-js/index.d.ts +5 -0
  30. package/adapter-js/options.d.ts +4 -0
  31. package/adapter-next/code/I18nApp.d.ts +3 -0
  32. package/adapter-next/code/I18nHead.d.ts +3 -0
  33. package/adapter-next/code/I18nLayout.d.ts +3 -0
  34. package/adapter-next/code/I18nPage.d.ts +3 -0
  35. package/adapter-next/code/I18nRoot.d.ts +3 -0
  36. package/adapter-next/code/I18nSetter.d.ts +3 -0
  37. package/adapter-next/code/deprecated_useLocale.d.ts +3 -0
  38. package/adapter-next/code/i18nGet.d.ts +3 -0
  39. package/adapter-next/code/index.d.ts +3 -0
  40. package/adapter-next/code/next-redirects.d.ts +3 -0
  41. package/adapter-next/code/next-rewrites.d.ts +3 -0
  42. package/adapter-next/code/useRouteId.d.ts +3 -0
  43. package/adapter-next/code/useTo.d.ts +3 -0
  44. package/adapter-next/code/useToSpa.d.ts +3 -0
  45. package/adapter-next/index.d.ts +5 -0
  46. package/adapter-next/options.d.ts +4 -0
  47. package/adapter-next/plugin-async.d.ts +8 -0
  48. package/adapter-next/plugin-legacy.d.ts +18 -0
  49. package/adapter-next/plugin-shared.d.ts +9 -0
  50. package/adapter-next/plugin.d.ts +6 -0
  51. package/adapter-next/redirects.d.ts +5 -0
  52. package/adapter-next/rewrites.d.ts +5 -0
  53. package/adapter-next/transformPathname.d.ts +1 -0
  54. package/adapter-next/webpackPluginI18n.d.ts +7 -0
  55. package/adapter-next-translate/code/DynamicNamespaces.d.ts +3 -0
  56. package/adapter-next-translate/code/I18nProvider.d.ts +3 -0
  57. package/adapter-next-translate/code/T.d.ts +3 -0
  58. package/adapter-next-translate/code/TransText.d.ts +3 -0
  59. package/adapter-next-translate/code/getT.d.ts +3 -0
  60. package/adapter-next-translate/code/index.d.ts +3 -0
  61. package/adapter-next-translate/code/nextTranslateI18n.d.ts +3 -0
  62. package/adapter-next-translate/code/useLocale.d.ts +3 -0
  63. package/adapter-next-translate/code/useT.d.ts +3 -0
  64. package/adapter-next-translate/index.d.ts +5 -0
  65. package/adapter-next-translate/options.d.ts +3 -0
  66. package/adapter-react/code/I18nContext.d.ts +3 -0
  67. package/adapter-react/code/I18nEffects.d.ts +3 -0
  68. package/adapter-react/code/I18nHeadTags.d.ts +3 -0
  69. package/adapter-react/code/I18nMetadataContext.d.ts +3 -0
  70. package/adapter-react/code/I18nMetadataProvider.d.ts +3 -0
  71. package/adapter-react/code/I18nMetadataSetter.d.ts +3 -0
  72. package/adapter-react/code/I18nProvider.d.ts +3 -0
  73. package/adapter-react/code/I18nRouteContext.d.ts +3 -0
  74. package/adapter-react/code/I18nRouteProvider.d.ts +3 -0
  75. package/adapter-react/code/I18nRouteSetter.d.ts +3 -0
  76. package/adapter-react/code/T.d.ts +3 -0
  77. package/adapter-react/code/TransText.d.ts +3 -0
  78. package/adapter-react/code/formatElements.d.ts +3 -0
  79. package/adapter-react/code/index.d.ts +2 -0
  80. package/adapter-react/code/useI18nSwitch.d.ts +3 -0
  81. package/adapter-react/code/useLocale.d.ts +3 -0
  82. package/adapter-react/code/useRouteId.d.ts +3 -0
  83. package/adapter-react/code/useT.d.ts +3 -0
  84. package/adapter-react/index.d.ts +5 -0
  85. package/adapter-react/options.d.ts +2 -0
  86. package/api.cjs.js +4026 -0
  87. package/api.esm.js +4000 -0
  88. package/client/formatRoutePathname.d.ts +4 -0
  89. package/client/index.d.ts +3 -0
  90. package/client/interpolateTo.d.ts +4 -0
  91. package/client/routeHasDynamicPortion.d.ts +2 -0
  92. package/compiler/adapter.d.ts +10 -0
  93. package/compiler/api.d.ts +34 -0
  94. package/compiler/code/data-routes.d.ts +21 -0
  95. package/compiler/code/data-translations.d.ts +16 -0
  96. package/compiler/code/data.d.ts +17 -0
  97. package/compiler/code/generate.d.ts +10 -0
  98. package/compiler/code/index.d.ts +3 -0
  99. package/compiler/code/tsCompile.d.ts +2 -0
  100. package/compiler/code/write.d.ts +10 -0
  101. package/compiler/config.d.ts +21 -0
  102. package/compiler/createAdapter.d.ts +5 -0
  103. package/compiler/helpers.d.ts +3 -0
  104. package/compiler/input/data-local.d.ts +4 -0
  105. package/compiler/input/data-remote.d.ts +7 -0
  106. package/compiler/input/data.d.ts +4 -0
  107. package/compiler/input/index.d.ts +4 -0
  108. package/compiler/input/types.d.ts +14 -0
  109. package/compiler/input/write.d.ts +8 -0
  110. package/compiler/pluralisation.d.ts +37 -0
  111. package/compiler/summary/data.d.ts +6 -0
  112. package/compiler/summary/generate.d.ts +3 -0
  113. package/compiler/summary/index.d.ts +2 -0
  114. package/compiler/summary/write.d.ts +10 -0
  115. package/compiler/types.d.ts +94 -0
  116. package/compiler-sync.cjs.d.ts +1 -0
  117. package/compiler-sync.cjs.default.js +1 -0
  118. package/compiler-sync.cjs.js +11 -0
  119. package/compiler-sync.cjs.mjs +2 -0
  120. package/compiler-sync.d.ts +4 -0
  121. package/compiler-sync.esm.js +7 -0
  122. package/compiler-worker.cjs.d.ts +1 -0
  123. package/compiler-worker.cjs.default.js +1 -0
  124. package/compiler-worker.cjs.js +17 -0
  125. package/compiler-worker.cjs.mjs +2 -0
  126. package/compiler-worker.d.ts +1 -0
  127. package/compiler-worker.esm.js +15 -0
  128. package/compiler.cjs.d.ts +1 -0
  129. package/compiler.cjs.default.js +1 -0
  130. package/compiler.cjs.js +20 -0
  131. package/compiler.cjs.mjs +2 -0
  132. package/compiler.d.ts +2 -0
  133. package/compiler.esm.js +12 -0
  134. package/formatRoutePathname.cjs.js +10 -0
  135. package/formatRoutePathname.esm.js +8 -0
  136. package/index.cjs.d.ts +1 -0
  137. package/index.cjs.default.js +1 -0
  138. package/index.cjs.js +49 -0
  139. package/index.cjs.mjs +2 -0
  140. package/index.d.ts +2 -0
  141. package/index.esm.js +44 -0
  142. package/next.cjs.d.ts +1 -0
  143. package/next.cjs.default.js +1 -0
  144. package/next.cjs.js +353 -0
  145. package/next.cjs.mjs +2 -0
  146. package/next.d.ts +3 -0
  147. package/next.esm.js +329 -0
  148. package/package.json +62 -0
  149. package/types.d.ts +48 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @koine/i18n
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config, options }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config: { baseUrl, trailingSlash }, }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: (data: I18nCompiler.DataCode, adapterOptions: import("type-fest/source/partial-deep").PartialObjectDeep<import("../options").AdapterJsOptions, {}>) => I18nCompiler.Adapter<"js" | "react" | "next" | "next-translate"> | Promise<I18nCompiler.Adapter<"js" | "react" | "next" | "next-translate">>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ options }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ routes }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ routes }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ routes }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config, options, translations, }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ options }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config, routes, options }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config, options }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config, input, routes, options, }: I18nCompiler.AdapterArg<"js">) => string;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import type { AdapterJsOptions } from "./options";
2
+ export type AdapterJs = {
3
+ name: "js";
4
+ options: AdapterJsOptions;
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare const adapterJsOptions: AdapterJsOptions;
2
+ export type AdapterJsOptions = {
3
+ modularized: boolean;
4
+ };
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config: { single }, options: { routes: { localeParamName }, }, }: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config: { single } }: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ options: { routes: { localeParamName }, }, }: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: (data: I18nCompiler.DataCode, adapterOptions: import("type-fest/source/partial-deep").PartialObjectDeep<import("../options").AdapterNextOptions, {}>) => I18nCompiler.Adapter<"js" | "react" | "next" | "next-translate"> | Promise<I18nCompiler.Adapter<"js" | "react" | "next" | "next-translate">>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config, options, routes, }: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config, routes, options, }: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ options: { routes: { localeParamName }, }, adapterOptions: { router }, }: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next">) => string;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import type { AdapterNextOptions } from "./options";
2
+ export type AdapterNext = {
3
+ name: "next";
4
+ options: AdapterNextOptions;
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare const adapterNextOptions: AdapterNextOptions;
2
+ export type AdapterNextOptions = {
3
+ router: "app" | "pages" | "migrating";
4
+ };
@@ -0,0 +1,8 @@
1
+ import type { NextConfig } from "next";
2
+ import { type I18nCompilerOptions } from "../compiler";
3
+ type NextConfigFn = (phase: string, context?: any) => Promise<NextConfig> | NextConfig;
4
+ export type WithI18nAsyncOptions = NextConfig & {
5
+ i18nCompiler?: I18nCompilerOptions;
6
+ };
7
+ export declare let withI18nAsync: <TAdapterName extends "js" | "react" | "next" | "next-translate">(config?: WithI18nAsyncOptions) => NextConfigFn;
8
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { NextConfig } from "next";
2
+ import type { CodeDataRoutesOptions } from "../compiler/code/data-routes";
3
+ import type { I18nCompilerConfig } from "../compiler/config";
4
+ type Route = string | {
5
+ [key: string]: Route | string;
6
+ };
7
+ type RoutesByLocale = Record<string, Route>;
8
+ type Locale = string;
9
+ type Routes = Record<Locale, RoutesByLocale>;
10
+ type I18nRoutesOptions = {
11
+ routes: Routes;
12
+ debug?: boolean;
13
+ } & Pick<I18nCompilerConfig, "locales" | "defaultLocale" | "hideDefaultLocaleInUrl" | "trailingSlash"> & Pick<CodeDataRoutesOptions, "localeParamName" | "permanentRedirects">;
14
+ export type WithI18nLegacyOptions = NextConfig & {
15
+ i18nRoutes?: I18nRoutesOptions;
16
+ };
17
+ export declare let withI18nLegacy: (config: WithI18nLegacyOptions) => NextConfig;
18
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { NextConfig } from "next";
2
+ import type { I18nCompilerReturn } from "../compiler";
3
+ export declare let tweakNextConfig: (options: I18nCompilerReturn, nextConfig: NextConfig) => NextConfig;
4
+ export declare let getRedirects: (prevRedirects: NextConfig["redirects"], i18nResult: I18nCompilerReturn) => Promise<import("next/dist/lib/load-custom-routes").Redirect[]>;
5
+ export declare let getRewrites: (prevRewrites: NextConfig["rewrites"], i18nResult: I18nCompilerReturn) => Promise<{
6
+ beforeFiles: import("next/dist/lib/load-custom-routes").Rewrite[];
7
+ afterFiles: import("next/dist/lib/load-custom-routes").Rewrite[];
8
+ fallback: import("next/dist/lib/load-custom-routes").Rewrite[];
9
+ }>;
@@ -0,0 +1,6 @@
1
+ import type { NextConfig } from "next";
2
+ import { type I18nCompilerOptions } from "../compiler";
3
+ export type WithI18nOptions = NextConfig & {
4
+ i18nCompiler?: I18nCompilerOptions;
5
+ };
6
+ export declare let withI18n: (config?: WithI18nOptions) => NextConfig;
@@ -0,0 +1,5 @@
1
+ import type { Redirect } from "next/dist/lib/load-custom-routes";
2
+ import type { CodeDataRoutesOptions } from "../compiler/code/data-routes";
3
+ import type { I18nCompiler } from "../compiler/types";
4
+ export declare function generateRedirectForPathname(config: Pick<I18nCompiler.Config, "defaultLocale" | "hideDefaultLocaleInUrl" | "trailingSlash"> & Pick<CodeDataRoutesOptions, "localeParamName" | "permanentRedirects">, locale: string, template: string, pathname: string, redirects: (Redirect | undefined)[]): void;
5
+ export declare let generateRedirects: (config: I18nCompiler.Config, { localeParamName, permanentRedirects, tokens }: CodeDataRoutesOptions, routes: I18nCompiler.DataRoutes["byId"]) => Redirect[];
@@ -0,0 +1,5 @@
1
+ import type { Rewrite } from "next/dist/lib/load-custom-routes";
2
+ import type { CodeDataRoutesOptions } from "../compiler/code/data-routes";
3
+ import type { I18nCompiler } from "../compiler/types";
4
+ export declare const generateRewriteForPathname: (config: Pick<I18nCompiler.Config, "defaultLocale" | "hideDefaultLocaleInUrl" | "trailingSlash"> & Pick<CodeDataRoutesOptions, "localeParamName">, locale: string, template: string, pathname: string, rewrites: (Rewrite | undefined)[]) => void;
5
+ export declare let generateRewrites: (config: I18nCompiler.Config, { tokens, localeParamName, permanentRedirects }: CodeDataRoutesOptions, routes: I18nCompiler.DataRoutes["byId"]) => Rewrite[];
@@ -0,0 +1 @@
1
+ export declare function transformPathname(rawPathnameOrTemplate: string, wildcard?: boolean): string;
@@ -0,0 +1,7 @@
1
+ import type { Compiler } from "webpack";
2
+ import { type I18nCompilerOptions } from "../compiler";
3
+ export declare class I18nWebpackPlugin {
4
+ opts: I18nCompilerOptions;
5
+ constructor(opts: I18nCompilerOptions);
6
+ apply(compiler: Compiler): void;
7
+ }
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next-translate">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next-translate">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next-translate">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next-translate">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next-translate">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: (data: I18nCompiler.DataCode, adapterOptions: import("type-fest/source/partial-deep").PartialObjectDeep<Partial<Pick<import("next-translate").I18nConfig, "loader">>, {}>) => I18nCompiler.Adapter<"js" | "react" | "next" | "next-translate"> | Promise<I18nCompiler.Adapter<"js" | "react" | "next" | "next-translate">>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config, adapterOptions, }: I18nCompiler.AdapterArg<"next-translate">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({ config }: I18nCompiler.AdapterArg<"next-translate">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"next-translate">) => string;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import type { AdapterNextTranslateOptions } from "./options";
2
+ export type AdapterNextTranslate = {
3
+ name: "next-translate";
4
+ options: AdapterNextTranslateOptions;
5
+ };
@@ -0,0 +1,3 @@
1
+ import type { I18nConfig } from "next-translate";
2
+ export declare const adapterNextTranslateOptions: AdapterNextTranslateOptions;
3
+ export type AdapterNextTranslateOptions = Partial<Pick<I18nConfig, "loader">>;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (data: import("../../compiler-sync").I18nCompiler.DataCode, adapterOptions: import("type-fest/source/partial-deep").PartialObjectDeep<import("../options").AdapterReactOptions, {}>) => import("../../compiler-sync").I18nCompiler.Adapter<"js" | "react" | "next" | "next-translate"> | Promise<import("../../compiler-sync").I18nCompiler.Adapter<"js" | "react" | "next" | "next-translate">>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { I18nCompiler } from "../../compiler/types";
2
+ declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import type { AdapterReactOptions } from "./options";
2
+ export type AdapterReact = {
3
+ name: "react";
4
+ options: AdapterReactOptions;
5
+ };
@@ -0,0 +1,2 @@
1
+ export declare const adapterReactOptions: AdapterReactOptions;
2
+ export type AdapterReactOptions = {};