@djangocfg/layouts 2.1.194 → 2.1.197
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/layouts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.197",
|
|
4
4
|
"description": "Simple, straightforward layout components for Next.js - import and use with props",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layouts",
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
"check": "tsc --noEmit"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@djangocfg/api": "^2.1.
|
|
78
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
79
|
-
"@djangocfg/i18n": "^2.1.
|
|
80
|
-
"@djangocfg/ui-core": "^2.1.
|
|
81
|
-
"@djangocfg/ui-nextjs": "^2.1.
|
|
82
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
77
|
+
"@djangocfg/api": "^2.1.197",
|
|
78
|
+
"@djangocfg/centrifugo": "^2.1.197",
|
|
79
|
+
"@djangocfg/i18n": "^2.1.197",
|
|
80
|
+
"@djangocfg/ui-core": "^2.1.197",
|
|
81
|
+
"@djangocfg/ui-nextjs": "^2.1.197",
|
|
82
|
+
"@djangocfg/ui-tools": "^2.1.197",
|
|
83
83
|
"@hookform/resolvers": "^5.2.2",
|
|
84
84
|
"consola": "^3.4.2",
|
|
85
85
|
"lucide-react": "^0.545.0",
|
|
@@ -102,13 +102,13 @@
|
|
|
102
102
|
"uuid": "^11.1.0"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@djangocfg/api": "^2.1.
|
|
106
|
-
"@djangocfg/i18n": "^2.1.
|
|
107
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
108
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
109
|
-
"@djangocfg/ui-core": "^2.1.
|
|
110
|
-
"@djangocfg/ui-nextjs": "^2.1.
|
|
111
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
105
|
+
"@djangocfg/api": "^2.1.197",
|
|
106
|
+
"@djangocfg/i18n": "^2.1.197",
|
|
107
|
+
"@djangocfg/centrifugo": "^2.1.197",
|
|
108
|
+
"@djangocfg/typescript-config": "^2.1.197",
|
|
109
|
+
"@djangocfg/ui-core": "^2.1.197",
|
|
110
|
+
"@djangocfg/ui-nextjs": "^2.1.197",
|
|
111
|
+
"@djangocfg/ui-tools": "^2.1.197",
|
|
112
112
|
"@types/node": "^24.7.2",
|
|
113
113
|
"@types/react": "^19.1.0",
|
|
114
114
|
"@types/react-dom": "^19.1.0",
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from '@djangocfg/ui-core/components';
|
|
29
29
|
|
|
30
30
|
// Default locale labels (supports both simple codes and regional variants)
|
|
31
|
-
const
|
|
31
|
+
export const LOCALE_LABELS: Record<string, string> = {
|
|
32
32
|
// Major languages
|
|
33
33
|
en: 'English',
|
|
34
34
|
ru: 'Русский',
|
|
@@ -137,7 +137,7 @@ export function LocaleSwitcher({
|
|
|
137
137
|
showTriggerLabel = true,
|
|
138
138
|
className,
|
|
139
139
|
}: LocaleSwitcherProps) {
|
|
140
|
-
const allLabels = { ...
|
|
140
|
+
const allLabels = { ...LOCALE_LABELS, ...labels };
|
|
141
141
|
|
|
142
142
|
const getLabel = (code: string) => {
|
|
143
143
|
const label = allLabels[code] || code.toUpperCase();
|
package/src/layouts/index.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
export * from './types';
|
|
12
12
|
|
|
13
13
|
// Shared components
|
|
14
|
-
export { LocaleSwitcher, UserMenu } from './_components';
|
|
14
|
+
export { LocaleSwitcher, LOCALE_LABELS, UserMenu } from './_components';
|
|
15
15
|
export type { LocaleSwitcherProps, UserMenuProps } from './_components';
|
|
16
16
|
|
|
17
17
|
// Smart layout router
|