@djangocfg/nextjs 2.1.109 → 2.1.111
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/README.md +176 -7
- package/dist/config/index.d.mts +16 -1
- package/dist/config/index.mjs +83 -14
- package/dist/config/index.mjs.map +1 -1
- package/dist/i18n/client.d.mts +123 -0
- package/dist/i18n/client.mjs +104 -0
- package/dist/i18n/client.mjs.map +1 -0
- package/dist/i18n/components.d.mts +22 -0
- package/dist/i18n/components.mjs +133 -0
- package/dist/i18n/components.mjs.map +1 -0
- package/dist/i18n/index.d.mts +17 -0
- package/dist/i18n/index.mjs +269 -0
- package/dist/i18n/index.mjs.map +1 -0
- package/dist/i18n/navigation.d.mts +1095 -0
- package/dist/i18n/navigation.mjs +45 -0
- package/dist/i18n/navigation.mjs.map +1 -0
- package/dist/i18n/plugin.d.mts +41 -0
- package/dist/i18n/plugin.mjs +17 -0
- package/dist/i18n/plugin.mjs.map +1 -0
- package/dist/i18n/provider.d.mts +18 -0
- package/dist/i18n/provider.mjs +54 -0
- package/dist/i18n/provider.mjs.map +1 -0
- package/dist/i18n/proxy.d.mts +40 -0
- package/dist/i18n/proxy.mjs +42 -0
- package/dist/i18n/proxy.mjs.map +1 -0
- package/dist/i18n/request.d.mts +42 -0
- package/dist/i18n/request.mjs +63 -0
- package/dist/i18n/request.mjs.map +1 -0
- package/dist/i18n/routing.d.mts +79 -0
- package/dist/i18n/routing.mjs +33 -0
- package/dist/i18n/routing.mjs.map +1 -0
- package/dist/i18n/server.d.mts +90 -0
- package/dist/i18n/server.mjs +79 -0
- package/dist/i18n/server.mjs.map +1 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.mjs +176 -30
- package/dist/index.mjs.map +1 -1
- package/dist/sitemap/index.d.mts +22 -3
- package/dist/sitemap/index.mjs +92 -15
- package/dist/sitemap/index.mjs.map +1 -1
- package/dist/types-Cy349X20.d.mts +60 -0
- package/package.json +54 -4
- package/src/config/constants.ts +1 -0
- package/src/config/createNextConfig.ts +39 -17
- package/src/i18n/client.ts +221 -0
- package/src/i18n/components/LocaleSwitcher.tsx +124 -0
- package/src/i18n/components/index.ts +7 -0
- package/src/i18n/index.ts +149 -0
- package/src/i18n/navigation.ts +90 -0
- package/src/i18n/plugin.ts +66 -0
- package/src/i18n/provider.tsx +91 -0
- package/src/i18n/proxy.ts +81 -0
- package/src/i18n/request.ts +141 -0
- package/src/i18n/routing.ts +84 -0
- package/src/i18n/server.ts +175 -0
- package/src/i18n/types.ts +88 -0
- package/src/sitemap/generator.ts +84 -9
- package/src/sitemap/index.ts +1 -1
- package/src/sitemap/route.ts +71 -8
- package/src/sitemap/types.ts +9 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
// src/i18n/routing.ts
|
|
2
|
+
import { defineRouting } from "next-intl/routing";
|
|
3
|
+
var DEFAULT_LOCALES = ["en", "ru", "ko"];
|
|
4
|
+
var DEFAULT_LOCALE = "en";
|
|
5
|
+
function createRouting(config2) {
|
|
6
|
+
const locales = config2?.locales ?? DEFAULT_LOCALES;
|
|
7
|
+
const defaultLocale = config2?.defaultLocale ?? DEFAULT_LOCALE;
|
|
8
|
+
const localePrefix = config2?.localePrefix ?? "always";
|
|
9
|
+
return defineRouting({
|
|
10
|
+
locales,
|
|
11
|
+
defaultLocale,
|
|
12
|
+
localePrefix
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
var routing = createRouting();
|
|
16
|
+
function isValidLocale(locale, supportedLocales = DEFAULT_LOCALES) {
|
|
17
|
+
return supportedLocales.includes(locale);
|
|
18
|
+
}
|
|
19
|
+
async function getLocaleFromParams(params) {
|
|
20
|
+
const resolved = await params;
|
|
21
|
+
return resolved.locale;
|
|
22
|
+
}
|
|
23
|
+
function generateLocaleParams(locales = DEFAULT_LOCALES) {
|
|
24
|
+
return locales.map((locale) => ({ locale }));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// src/i18n/navigation.ts
|
|
28
|
+
import { createNavigation as createNextIntlNavigation } from "next-intl/navigation";
|
|
29
|
+
function createNavigation(routingConfig) {
|
|
30
|
+
const config2 = routingConfig ?? routing;
|
|
31
|
+
return createNextIntlNavigation(config2);
|
|
32
|
+
}
|
|
33
|
+
function createNavigationFromConfig(config2) {
|
|
34
|
+
const routingConfig = createRouting(config2);
|
|
35
|
+
return createNextIntlNavigation(routingConfig);
|
|
36
|
+
}
|
|
37
|
+
var {
|
|
38
|
+
Link,
|
|
39
|
+
redirect,
|
|
40
|
+
usePathname,
|
|
41
|
+
useRouter,
|
|
42
|
+
getPathname
|
|
43
|
+
} = createNavigation();
|
|
44
|
+
|
|
45
|
+
// src/i18n/provider.tsx
|
|
46
|
+
import { NextIntlClientProvider } from "next-intl";
|
|
47
|
+
import { I18nProvider as DjangoCfgI18nProvider } from "@djangocfg/i18n";
|
|
48
|
+
import { jsx } from "react/jsx-runtime";
|
|
49
|
+
function I18nProvider({
|
|
50
|
+
locale,
|
|
51
|
+
messages,
|
|
52
|
+
timeZone = "UTC",
|
|
53
|
+
now,
|
|
54
|
+
children
|
|
55
|
+
}) {
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
NextIntlClientProvider,
|
|
58
|
+
{
|
|
59
|
+
locale,
|
|
60
|
+
messages,
|
|
61
|
+
timeZone,
|
|
62
|
+
now,
|
|
63
|
+
children: /* @__PURE__ */ jsx(
|
|
64
|
+
DjangoCfgI18nProvider,
|
|
65
|
+
{
|
|
66
|
+
locale,
|
|
67
|
+
translations: messages,
|
|
68
|
+
children
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
function NextIntlProvider({
|
|
75
|
+
locale,
|
|
76
|
+
messages,
|
|
77
|
+
timeZone = "UTC",
|
|
78
|
+
now,
|
|
79
|
+
children
|
|
80
|
+
}) {
|
|
81
|
+
return /* @__PURE__ */ jsx(
|
|
82
|
+
NextIntlClientProvider,
|
|
83
|
+
{
|
|
84
|
+
locale,
|
|
85
|
+
messages,
|
|
86
|
+
timeZone,
|
|
87
|
+
now,
|
|
88
|
+
children
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// src/i18n/request.ts
|
|
94
|
+
import { getRequestConfig } from "next-intl/server";
|
|
95
|
+
import { mergeTranslations, en, ru, ko } from "@djangocfg/i18n";
|
|
96
|
+
var DEFAULT_LOCALES2 = {
|
|
97
|
+
en,
|
|
98
|
+
ru,
|
|
99
|
+
ko
|
|
100
|
+
};
|
|
101
|
+
function loadMessages(locale, options) {
|
|
102
|
+
const locales = options.locales ?? DEFAULT_LOCALES2;
|
|
103
|
+
const baseMessages = locales[locale] ?? locales.en ?? en;
|
|
104
|
+
if (!options.extensions?.length) {
|
|
105
|
+
return baseMessages;
|
|
106
|
+
}
|
|
107
|
+
let mergedMessages = { ...baseMessages };
|
|
108
|
+
for (const extension of options.extensions) {
|
|
109
|
+
const extMessages = extension.locales[locale] ?? extension.locales.en;
|
|
110
|
+
if (extMessages) {
|
|
111
|
+
mergedMessages = mergeTranslations(mergedMessages, {
|
|
112
|
+
[extension.namespace]: extMessages
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return mergedMessages;
|
|
117
|
+
}
|
|
118
|
+
function createRequestConfig(options = {}) {
|
|
119
|
+
return getRequestConfig(async ({ requestLocale }) => {
|
|
120
|
+
let locale = await requestLocale;
|
|
121
|
+
if (!locale || !routing.locales.includes(locale)) {
|
|
122
|
+
locale = routing.defaultLocale;
|
|
123
|
+
}
|
|
124
|
+
const messages = options.loadMessages ? await options.loadMessages(locale) : loadMessages(locale, options);
|
|
125
|
+
return {
|
|
126
|
+
locale,
|
|
127
|
+
messages,
|
|
128
|
+
timeZone: options.timeZone ?? "UTC"
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
var request_default = createRequestConfig();
|
|
133
|
+
|
|
134
|
+
// src/i18n/proxy.ts
|
|
135
|
+
import createIntlMiddleware from "next-intl/middleware";
|
|
136
|
+
function createProxy(routingConfig) {
|
|
137
|
+
const config2 = routingConfig ?? routing;
|
|
138
|
+
return createIntlMiddleware(config2);
|
|
139
|
+
}
|
|
140
|
+
function createProxyFromConfig(config2) {
|
|
141
|
+
const routingConfig = createRouting(config2);
|
|
142
|
+
return createIntlMiddleware(routingConfig);
|
|
143
|
+
}
|
|
144
|
+
var handleI18nRouting = createProxy();
|
|
145
|
+
function proxy(request) {
|
|
146
|
+
return handleI18nRouting(request);
|
|
147
|
+
}
|
|
148
|
+
var config = {
|
|
149
|
+
matcher: ["/((?!api|_next|_vercel|.*\\..*).*)"]
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// src/i18n/components/LocaleSwitcher.tsx
|
|
153
|
+
import { Globe } from "lucide-react";
|
|
154
|
+
import {
|
|
155
|
+
Button,
|
|
156
|
+
DropdownMenu,
|
|
157
|
+
DropdownMenuContent,
|
|
158
|
+
DropdownMenuItem,
|
|
159
|
+
DropdownMenuTrigger
|
|
160
|
+
} from "@djangocfg/ui-core/components";
|
|
161
|
+
|
|
162
|
+
// src/i18n/client.ts
|
|
163
|
+
import {
|
|
164
|
+
useTranslations as useNextIntlTranslations,
|
|
165
|
+
useLocale as useNextIntlLocale,
|
|
166
|
+
useMessages,
|
|
167
|
+
useNow,
|
|
168
|
+
useTimeZone,
|
|
169
|
+
useFormatter
|
|
170
|
+
} from "next-intl";
|
|
171
|
+
function useLocale() {
|
|
172
|
+
return useNextIntlLocale();
|
|
173
|
+
}
|
|
174
|
+
function useLocales() {
|
|
175
|
+
return routing.locales;
|
|
176
|
+
}
|
|
177
|
+
function useChangeLocale() {
|
|
178
|
+
const router = useRouter();
|
|
179
|
+
const pathname = usePathname();
|
|
180
|
+
return (locale) => {
|
|
181
|
+
router.replace(pathname, { locale });
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
function useLocaleSwitcher() {
|
|
185
|
+
const locale = useLocale();
|
|
186
|
+
const locales = useLocales();
|
|
187
|
+
const changeLocale = useChangeLocale();
|
|
188
|
+
return { locale, locales, changeLocale };
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// src/i18n/components/LocaleSwitcher.tsx
|
|
192
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
193
|
+
var DEFAULT_LABELS = {
|
|
194
|
+
en: "English",
|
|
195
|
+
ru: "\u0420\u0443\u0441\u0441\u043A\u0438\u0439",
|
|
196
|
+
ko: "\uD55C\uAD6D\uC5B4",
|
|
197
|
+
zh: "\u4E2D\u6587",
|
|
198
|
+
ja: "\u65E5\u672C\u8A9E",
|
|
199
|
+
es: "Espa\xF1ol",
|
|
200
|
+
fr: "Fran\xE7ais",
|
|
201
|
+
de: "Deutsch",
|
|
202
|
+
pt: "Portugu\xEAs",
|
|
203
|
+
it: "Italiano",
|
|
204
|
+
ar: "\u0627\u0644\u0639\u0631\u0628\u064A\u0629",
|
|
205
|
+
hi: "\u0939\u093F\u0928\u094D\u0926\u0940",
|
|
206
|
+
tr: "T\xFCrk\xE7e",
|
|
207
|
+
pl: "Polski",
|
|
208
|
+
nl: "Nederlands",
|
|
209
|
+
uk: "\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"
|
|
210
|
+
};
|
|
211
|
+
function LocaleSwitcher({
|
|
212
|
+
locales: customLocales,
|
|
213
|
+
labels = {},
|
|
214
|
+
showCode = false,
|
|
215
|
+
variant = "ghost",
|
|
216
|
+
size = "sm",
|
|
217
|
+
showIcon = true,
|
|
218
|
+
className
|
|
219
|
+
}) {
|
|
220
|
+
const { locale, locales: routingLocales, changeLocale } = useLocaleSwitcher();
|
|
221
|
+
const availableLocales = customLocales || routingLocales;
|
|
222
|
+
const allLabels = { ...DEFAULT_LABELS, ...labels };
|
|
223
|
+
const getLabel = (code) => {
|
|
224
|
+
const label = allLabels[code] || code.toUpperCase();
|
|
225
|
+
if (showCode) {
|
|
226
|
+
return `${code.toUpperCase()} - ${label}`;
|
|
227
|
+
}
|
|
228
|
+
return label;
|
|
229
|
+
};
|
|
230
|
+
const currentLabel = showCode ? locale.toUpperCase() : getLabel(locale);
|
|
231
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
232
|
+
/* @__PURE__ */ jsx2(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant, size, className, children: [
|
|
233
|
+
showIcon && /* @__PURE__ */ jsx2(Globe, { className: "h-4 w-4 mr-1" }),
|
|
234
|
+
/* @__PURE__ */ jsx2("span", { children: currentLabel })
|
|
235
|
+
] }) }),
|
|
236
|
+
/* @__PURE__ */ jsx2(DropdownMenuContent, { align: "end", children: availableLocales.map((code) => /* @__PURE__ */ jsx2(
|
|
237
|
+
DropdownMenuItem,
|
|
238
|
+
{
|
|
239
|
+
onClick: () => changeLocale(code),
|
|
240
|
+
className: code === locale ? "bg-accent" : "",
|
|
241
|
+
children: getLabel(code)
|
|
242
|
+
},
|
|
243
|
+
code
|
|
244
|
+
)) })
|
|
245
|
+
] });
|
|
246
|
+
}
|
|
247
|
+
export {
|
|
248
|
+
I18nProvider,
|
|
249
|
+
Link,
|
|
250
|
+
LocaleSwitcher,
|
|
251
|
+
NextIntlProvider,
|
|
252
|
+
createNavigation,
|
|
253
|
+
createNavigationFromConfig,
|
|
254
|
+
createProxy,
|
|
255
|
+
createProxyFromConfig,
|
|
256
|
+
createRequestConfig,
|
|
257
|
+
createRouting,
|
|
258
|
+
generateLocaleParams,
|
|
259
|
+
getLocaleFromParams,
|
|
260
|
+
getPathname,
|
|
261
|
+
isValidLocale,
|
|
262
|
+
proxy,
|
|
263
|
+
config as proxyConfig,
|
|
264
|
+
redirect,
|
|
265
|
+
routing,
|
|
266
|
+
usePathname,
|
|
267
|
+
useRouter
|
|
268
|
+
};
|
|
269
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/i18n/routing.ts","../../src/i18n/navigation.ts","../../src/i18n/provider.tsx","../../src/i18n/request.ts","../../src/i18n/proxy.ts","../../src/i18n/components/LocaleSwitcher.tsx","../../src/i18n/client.ts"],"sourcesContent":["/**\n * i18n Routing Configuration\n *\n * Creates routing configuration for next-intl\n * Used by proxy and navigation components\n */\n\nimport { defineRouting } from 'next-intl/routing';\nimport type { I18nConfig, LocaleCode } from './types';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Default Configuration\n// ─────────────────────────────────────────────────────────────────────────────\n\nconst DEFAULT_LOCALES: LocaleCode[] = ['en', 'ru', 'ko'];\nconst DEFAULT_LOCALE: LocaleCode = 'en';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Routing Factory\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Create routing configuration for next-intl\n *\n * @example\n * ```ts\n * // i18n/routing.ts\n * import { createRouting } from '@djangocfg/nextjs/i18n';\n *\n * export const routing = createRouting({\n * locales: ['en', 'ru', 'ko'],\n * defaultLocale: 'en',\n * });\n * ```\n */\nexport function createRouting(config?: Partial<I18nConfig>) {\n const locales = config?.locales ?? DEFAULT_LOCALES;\n const defaultLocale = config?.defaultLocale ?? DEFAULT_LOCALE;\n const localePrefix = config?.localePrefix ?? 'always';\n\n return defineRouting({\n locales,\n defaultLocale,\n localePrefix,\n });\n}\n\n/**\n * Default routing configuration\n * Can be overridden by app-specific configuration\n */\nexport const routing = createRouting();\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Locale Utilities\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Check if a locale is supported\n */\nexport function isValidLocale(\n locale: string,\n supportedLocales: readonly string[] = DEFAULT_LOCALES\n): locale is LocaleCode {\n return supportedLocales.includes(locale as LocaleCode);\n}\n\n/**\n * Get locale from params (handles async params in Next.js 15+)\n */\nexport async function getLocaleFromParams(\n params: Promise<{ locale: string }> | { locale: string }\n): Promise<LocaleCode> {\n const resolved = await params;\n return resolved.locale as LocaleCode;\n}\n\n/**\n * Generate static params for all locales\n * Use in generateStaticParams for locale pages\n */\nexport function generateLocaleParams(locales: readonly string[] = DEFAULT_LOCALES) {\n return locales.map((locale) => ({ locale }));\n}\n","/**\n * i18n Navigation Utilities\n *\n * Provides locale-aware navigation components and functions\n *\n * @example\n * ```ts\n * // In your app's i18n/navigation.ts\n * import { createNavigation } from '@djangocfg/nextjs/i18n';\n * import { routing } from './routing';\n *\n * export const { Link, redirect, usePathname, useRouter } = createNavigation(routing);\n * ```\n *\n * @example\n * ```tsx\n * // Using in components\n * import { Link, usePathname } from '@/i18n/navigation';\n *\n * function Nav() {\n * const pathname = usePathname();\n * return <Link href=\"/about\">About</Link>;\n * }\n * ```\n */\n\nimport { createNavigation as createNextIntlNavigation } from 'next-intl/navigation';\nimport { routing, createRouting } from './routing';\nimport type { I18nConfig } from './types';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Navigation Factory\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Create navigation utilities with custom routing\n *\n * Returns locale-aware versions of:\n * - Link: Locale-prefixed links\n * - redirect: Server-side redirect with locale\n * - usePathname: Current pathname without locale prefix\n * - useRouter: Router with locale-aware navigation\n * - getPathname: Get pathname for a route\n */\nexport function createNavigation(routingConfig?: ReturnType<typeof createRouting>) {\n const config = routingConfig ?? routing;\n return createNextIntlNavigation(config);\n}\n\n/**\n * Create navigation from config options\n */\nexport function createNavigationFromConfig(config: Partial<I18nConfig>) {\n const routingConfig = createRouting(config);\n return createNextIntlNavigation(routingConfig);\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Default Navigation (using default routing)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Default navigation utilities\n * Use these directly or create custom ones with createNavigation()\n */\nexport const {\n Link,\n redirect,\n usePathname,\n useRouter,\n getPathname,\n} = createNavigation();\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Types\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Props for locale-aware Link component\n */\nexport interface LinkProps {\n /** Target href */\n href: string;\n /** Target locale (optional, defaults to current) */\n locale?: string;\n /** Children */\n children?: React.ReactNode;\n /** Additional props passed to Next.js Link */\n [key: string]: unknown;\n}\n","/**\n * i18n Provider for Next.js App Router\n *\n * Bridges next-intl with @djangocfg/i18n\n * Provides translations to both Server and Client components\n *\n * @example\n * ```tsx\n * // app/[locale]/layout.tsx\n * import { I18nProvider } from '@djangocfg/nextjs/i18n';\n * import { getMessages, getLocale } from '@djangocfg/nextjs/i18n/server';\n *\n * export default async function LocaleLayout({ children, params }) {\n * const locale = await getLocale(params);\n * const messages = await getMessages();\n *\n * return (\n * <I18nProvider locale={locale} messages={messages}>\n * {children}\n * </I18nProvider>\n * );\n * }\n * ```\n */\n\n'use client';\n\nimport { NextIntlClientProvider } from 'next-intl';\nimport { I18nProvider as DjangoCfgI18nProvider } from '@djangocfg/i18n';\nimport type { I18nProviderProps, LocaleCode } from './types';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Provider Component\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Unified i18n Provider\n *\n * Wraps both NextIntlClientProvider and @djangocfg/i18n's I18nProvider\n * This ensures both next-intl hooks and @djangocfg/i18n hooks work correctly\n */\nexport function I18nProvider({\n locale,\n messages,\n timeZone = 'UTC',\n now,\n children,\n}: I18nProviderProps) {\n return (\n <NextIntlClientProvider\n locale={locale}\n messages={messages}\n timeZone={timeZone}\n now={now}\n >\n <DjangoCfgI18nProvider\n locale={locale as LocaleCode}\n translations={messages}\n >\n {children}\n </DjangoCfgI18nProvider>\n </NextIntlClientProvider>\n );\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Lightweight Provider (next-intl only)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Next-intl only provider (without @djangocfg/i18n context)\n * Use if you only need next-intl hooks\n */\nexport function NextIntlProvider({\n locale,\n messages,\n timeZone = 'UTC',\n now,\n children,\n}: I18nProviderProps) {\n return (\n <NextIntlClientProvider\n locale={locale}\n messages={messages}\n timeZone={timeZone}\n now={now}\n >\n {children}\n </NextIntlClientProvider>\n );\n}\n","/**\n * i18n Request Configuration for Server Components\n *\n * Provides translations to server components via next-intl's request scope\n *\n * @example\n * ```ts\n * // i18n/request.ts in your app\n * import { createRequestConfig } from '@djangocfg/nextjs/i18n';\n * import { en, ru, ko } from '@djangocfg/i18n';\n * import { leadsI18n } from '@djangocfg/ext-leads';\n *\n * export default createRequestConfig({\n * locales: { en, ru, ko },\n * extensions: [leadsI18n],\n * });\n * ```\n */\n\nimport { getRequestConfig } from 'next-intl/server';\nimport { mergeTranslations, en, ru, ko } from '@djangocfg/i18n';\nimport type { I18nTranslations, LocaleCode } from '@djangocfg/i18n';\nimport type { Messages } from './types';\nimport { routing } from './routing';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Types\n// ─────────────────────────────────────────────────────────────────────────────\n\nexport interface RequestConfigOptions {\n /** Base locale translations from @djangocfg/i18n */\n locales?: Record<LocaleCode, I18nTranslations>;\n /** Extension i18n instances to merge */\n extensions?: Array<{\n namespace: string;\n locales: Record<string, Record<string, unknown>>;\n }>;\n /** Custom message loader (overrides locales) */\n loadMessages?: (locale: LocaleCode) => Promise<Messages> | Messages;\n /** Time zone for date/time formatting */\n timeZone?: string;\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Default Locales\n// ─────────────────────────────────────────────────────────────────────────────\n\nconst DEFAULT_LOCALES: Record<LocaleCode, I18nTranslations> = {\n en,\n ru,\n ko,\n};\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Message Loading\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Load and merge messages for a locale\n */\nfunction loadMessages(\n locale: LocaleCode,\n options: RequestConfigOptions\n): Messages {\n // Get base translations\n const locales = options.locales ?? DEFAULT_LOCALES;\n const baseMessages = locales[locale] ?? locales.en ?? en;\n\n // If no extensions, return base\n if (!options.extensions?.length) {\n return baseMessages as Messages;\n }\n\n // Merge extension translations\n let mergedMessages = { ...baseMessages } as Messages;\n\n for (const extension of options.extensions) {\n const extMessages = extension.locales[locale] ?? extension.locales.en;\n if (extMessages) {\n mergedMessages = mergeTranslations(mergedMessages, {\n [extension.namespace]: extMessages,\n }) as Messages;\n }\n }\n\n return mergedMessages;\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Request Config Factory\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Create request configuration for next-intl\n *\n * This is used in your app's `i18n/request.ts` file\n *\n * @example\n * ```ts\n * // i18n/request.ts\n * import { createRequestConfig } from '@djangocfg/nextjs/i18n';\n * import { leadsI18n } from '@djangocfg/ext-leads';\n * import { paymentsI18n } from '@djangocfg/ext-payments';\n *\n * export default createRequestConfig({\n * extensions: [leadsI18n, paymentsI18n],\n * });\n * ```\n */\nexport function createRequestConfig(options: RequestConfigOptions = {}) {\n return getRequestConfig(async ({ requestLocale }) => {\n // Get locale from request or default\n let locale = await requestLocale;\n\n // Validate and fallback to default\n if (!locale || !routing.locales.includes(locale as LocaleCode)) {\n locale = routing.defaultLocale;\n }\n\n // Load messages\n const messages = options.loadMessages\n ? await options.loadMessages(locale as LocaleCode)\n : loadMessages(locale as LocaleCode, options);\n\n return {\n locale,\n messages,\n timeZone: options.timeZone ?? 'UTC',\n };\n });\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Default Export\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Default request config with base @djangocfg/i18n translations\n * Can be used directly if no extensions are needed\n */\nexport default createRequestConfig();\n","/**\n * i18n Proxy for Next.js App Router (Next.js 16+)\n *\n * Handles locale detection and routing\n *\n * @example\n * ```ts\n * // proxy.ts\n * export { proxy as default, config } from '@djangocfg/nextjs/i18n';\n *\n * // Or with custom routing:\n * import { createProxy } from '@djangocfg/nextjs/i18n';\n * import { routing } from './i18n/routing';\n *\n * export default createProxy(routing);\n * export const config = { matcher: [...] };\n * ```\n */\n\nimport createIntlMiddleware from 'next-intl/middleware';\nimport type { NextRequest } from 'next/server';\n\nimport { routing, createRouting } from './routing';\nimport type { I18nConfig } from './types';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Proxy Factory\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Create i18n proxy handler with custom routing configuration\n */\nexport function createProxy(routingConfig?: ReturnType<typeof createRouting>) {\n const config = routingConfig ?? routing;\n return createIntlMiddleware(config);\n}\n\n/**\n * Create i18n proxy from config options\n */\nexport function createProxyFromConfig(config: Partial<I18nConfig>) {\n const routingConfig = createRouting(config);\n return createIntlMiddleware(routingConfig);\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Default Proxy\n// ─────────────────────────────────────────────────────────────────────────────\n\nconst handleI18nRouting = createProxy();\n\n/**\n * Default proxy function using default routing\n *\n * @example\n * ```ts\n * // proxy.ts\n * export { proxy as default, config } from '@djangocfg/nextjs/i18n';\n * ```\n */\nexport function proxy(request: NextRequest) {\n return handleI18nRouting(request);\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Config\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Default proxy config\n * Matches all paths except static files, API routes, and Next.js internals\n *\n * @example\n * ```ts\n * // proxy.ts\n * export { proxy as default, config } from '@djangocfg/nextjs/i18n';\n * ```\n */\nexport const config = {\n matcher: ['/((?!api|_next|_vercel|.*\\\\..*).*)',],\n};\n","/**\n * LocaleSwitcher Component\n *\n * Ready-to-use locale switcher dropdown using @djangocfg/ui-core components\n *\n * @example\n * ```tsx\n * import { LocaleSwitcher } from '@djangocfg/nextjs/i18n/components';\n *\n * // Basic usage (uses all locales from routing config)\n * <LocaleSwitcher />\n *\n * // With custom locales\n * <LocaleSwitcher locales={['en', 'ru']} />\n *\n * // With custom labels\n * <LocaleSwitcher\n * labels={{\n * en: 'English',\n * ru: 'Русский',\n * ko: '한국어',\n * }}\n * />\n * ```\n */\n\n'use client';\n\nimport { Globe } from 'lucide-react';\n\nimport {\n Button,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from '@djangocfg/ui-core/components';\n\nimport { useLocaleSwitcher } from '../client';\nimport type { LocaleCode } from '../types';\n\n// Default locale labels\nconst DEFAULT_LABELS: Record<string, string> = {\n en: 'English',\n ru: 'Русский',\n ko: '한국어',\n zh: '中文',\n ja: '日本語',\n es: 'Español',\n fr: 'Français',\n de: 'Deutsch',\n pt: 'Português',\n it: 'Italiano',\n ar: 'العربية',\n hi: 'हिन्दी',\n tr: 'Türkçe',\n pl: 'Polski',\n nl: 'Nederlands',\n uk: 'Українська',\n};\n\nexport interface LocaleSwitcherProps {\n /** Available locales (defaults to all from routing config) */\n locales?: LocaleCode[];\n /** Custom labels for locales */\n labels?: Record<string, string>;\n /** Show locale code instead of/with label */\n showCode?: boolean;\n /** Button variant */\n variant?: 'ghost' | 'outline' | 'default';\n /** Button size */\n size?: 'sm' | 'default' | 'lg' | 'icon';\n /** Show icon */\n showIcon?: boolean;\n /** Custom className */\n className?: string;\n}\n\nexport function LocaleSwitcher({\n locales: customLocales,\n labels = {},\n showCode = false,\n variant = 'ghost',\n size = 'sm',\n showIcon = true,\n className,\n}: LocaleSwitcherProps) {\n const { locale, locales: routingLocales, changeLocale } = useLocaleSwitcher();\n\n const availableLocales = customLocales || routingLocales;\n const allLabels = { ...DEFAULT_LABELS, ...labels };\n\n const getLabel = (code: LocaleCode) => {\n const label = allLabels[code] || code.toUpperCase();\n if (showCode) {\n return `${code.toUpperCase()} - ${label}`;\n }\n return label;\n };\n\n const currentLabel = showCode ? locale.toUpperCase() : getLabel(locale);\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button variant={variant} size={size} className={className}>\n {showIcon && <Globe className=\"h-4 w-4 mr-1\" />}\n <span>{currentLabel}</span>\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n {availableLocales.map((code) => (\n <DropdownMenuItem\n key={code}\n onClick={() => changeLocale(code)}\n className={code === locale ? 'bg-accent' : ''}\n >\n {getLabel(code)}\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n","/**\n * Client-side i18n Hooks\n *\n * For use in Client Components ('use client')\n *\n * @example\n * ```tsx\n * 'use client';\n *\n * import { useTranslations, useLocale } from '@djangocfg/nextjs/i18n/client';\n *\n * export function MyComponent() {\n * const t = useTranslations('HomePage');\n * const locale = useLocale();\n *\n * return <h1>{t('title')}</h1>;\n * }\n * ```\n */\n\n'use client';\n\nimport {\n useTranslations as useNextIntlTranslations,\n useLocale as useNextIntlLocale,\n useMessages,\n useNow,\n useTimeZone,\n useFormatter,\n} from 'next-intl';\nimport { useRouter, usePathname } from './navigation';\nimport { routing } from './routing';\nimport type { LocaleCode } from './types';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Core Client Hooks\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Get translations in Client Components\n *\n * @example\n * ```tsx\n * const t = useTranslations('HomePage');\n * return <h1>{t('title')}</h1>;\n *\n * // With interpolation\n * return <p>{t('greeting', { name: 'John' })}</p>;\n * ```\n */\nexport function useTranslations<Namespace extends string = never>(\n namespace?: Namespace\n) {\n return useNextIntlTranslations(namespace);\n}\n\n/**\n * Get current locale in Client Components\n */\nexport function useLocale(): LocaleCode {\n return useNextIntlLocale() as LocaleCode;\n}\n\n/**\n * Get all messages\n * Useful for passing to child providers\n */\nexport { useMessages };\n\n/**\n * Get current time\n */\nexport { useNow };\n\n/**\n * Get timezone\n */\nexport { useTimeZone };\n\n/**\n * Get formatter for dates, numbers, etc.\n */\nexport { useFormatter };\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Convenience Hooks\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Shorthand for useTranslations\n * Alias for compatibility with @djangocfg/i18n\n */\nexport const useT = useTranslations;\n\n/**\n * Get namespaced translations\n *\n * @example\n * ```tsx\n * const pt = useNamespacedTranslations('payments');\n * return <span>{pt('balance.available')}</span>;\n * ```\n */\nexport function useNamespacedTranslations(namespace: string) {\n return useNextIntlTranslations(namespace);\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Formatting Hooks\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Format a date according to locale\n *\n * @example\n * ```tsx\n * const formatDate = useDateFormatter();\n * return <span>{formatDate(new Date())}</span>;\n * ```\n */\nexport function useDateFormatter() {\n const formatter = useFormatter();\n return (date: Date | number, options?: Parameters<typeof formatter.dateTime>[1]) =>\n formatter.dateTime(date, options);\n}\n\n/**\n * Format a number according to locale\n *\n * @example\n * ```tsx\n * const formatNumber = useNumberFormatter();\n * return <span>{formatNumber(1234.56)}</span>;\n * ```\n */\nexport function useNumberFormatter() {\n const formatter = useFormatter();\n return (number: number, options?: Parameters<typeof formatter.number>[1]) =>\n formatter.number(number, options);\n}\n\n/**\n * Format relative time\n *\n * @example\n * ```tsx\n * const formatRelative = useRelativeTimeFormatter();\n * return <span>{formatRelative(new Date())}</span>;\n * ```\n */\nexport function useRelativeTimeFormatter() {\n const formatter = useFormatter();\n return (date: Date | number, options?: Parameters<typeof formatter.relativeTime>[1]) =>\n formatter.relativeTime(date, options);\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Locale Switching Hooks\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Get list of available locales from routing config\n *\n * @example\n * ```tsx\n * const locales = useLocales();\n * // ['en', 'ru', 'ko']\n * ```\n */\nexport function useLocales(): LocaleCode[] {\n return routing.locales as LocaleCode[];\n}\n\n/**\n * Get default locale from routing config\n */\nexport function useDefaultLocale(): LocaleCode {\n return routing.defaultLocale as LocaleCode;\n}\n\n/**\n * Hook to change current locale\n *\n * @example\n * ```tsx\n * const changeLocale = useChangeLocale();\n *\n * <button onClick={() => changeLocale('ru')}>\n * Switch to Russian\n * </button>\n * ```\n */\nexport function useChangeLocale() {\n const router = useRouter();\n const pathname = usePathname();\n\n return (locale: LocaleCode) => {\n router.replace(pathname, { locale });\n };\n}\n\n/**\n * Combined hook for locale switching\n * Returns current locale, available locales, and change function\n *\n * @example\n * ```tsx\n * const { locale, locales, changeLocale } = useLocaleSwitcher();\n *\n * <select value={locale} onChange={(e) => changeLocale(e.target.value)}>\n * {locales.map(l => <option key={l} value={l}>{l}</option>)}\n * </select>\n * ```\n */\nexport function useLocaleSwitcher() {\n const locale = useLocale();\n const locales = useLocales();\n const changeLocale = useChangeLocale();\n\n return { locale, locales, changeLocale };\n}\n"],"mappings":";AAOA,SAAS,qBAAqB;AAO9B,IAAM,kBAAgC,CAAC,MAAM,MAAM,IAAI;AACvD,IAAM,iBAA6B;AAoB5B,SAAS,cAAcA,SAA8B;AAC1D,QAAM,UAAUA,SAAQ,WAAW;AACnC,QAAM,gBAAgBA,SAAQ,iBAAiB;AAC/C,QAAM,eAAeA,SAAQ,gBAAgB;AAE7C,SAAO,cAAc;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACH;AAMO,IAAM,UAAU,cAAc;AAS9B,SAAS,cACd,QACA,mBAAsC,iBAChB;AACtB,SAAO,iBAAiB,SAAS,MAAoB;AACvD;AAKA,eAAsB,oBACpB,QACqB;AACrB,QAAM,WAAW,MAAM;AACvB,SAAO,SAAS;AAClB;AAMO,SAAS,qBAAqB,UAA6B,iBAAiB;AACjF,SAAO,QAAQ,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE;AAC7C;;;ACzDA,SAAS,oBAAoB,gCAAgC;AAkBtD,SAAS,iBAAiB,eAAkD;AACjF,QAAMC,UAAS,iBAAiB;AAChC,SAAO,yBAAyBA,OAAM;AACxC;AAKO,SAAS,2BAA2BA,SAA6B;AACtE,QAAM,gBAAgB,cAAcA,OAAM;AAC1C,SAAO,yBAAyB,aAAa;AAC/C;AAUO,IAAM;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,IAAI,iBAAiB;;;AC5CrB,SAAS,8BAA8B;AACvC,SAAS,gBAAgB,6BAA6B;AA2BhD;AAdC,SAAS,aAAa;AAAA,EAC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