@djangocfg/layouts 2.1.165 → 2.1.166
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.166",
|
|
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.166",
|
|
78
|
+
"@djangocfg/centrifugo": "^2.1.166",
|
|
79
|
+
"@djangocfg/i18n": "^2.1.166",
|
|
80
|
+
"@djangocfg/ui-core": "^2.1.166",
|
|
81
|
+
"@djangocfg/ui-nextjs": "^2.1.166",
|
|
82
|
+
"@djangocfg/ui-tools": "^2.1.166",
|
|
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.166",
|
|
106
|
+
"@djangocfg/i18n": "^2.1.166",
|
|
107
|
+
"@djangocfg/centrifugo": "^2.1.166",
|
|
108
|
+
"@djangocfg/typescript-config": "^2.1.166",
|
|
109
|
+
"@djangocfg/ui-core": "^2.1.166",
|
|
110
|
+
"@djangocfg/ui-nextjs": "^2.1.166",
|
|
111
|
+
"@djangocfg/ui-tools": "^2.1.166",
|
|
112
112
|
"@types/node": "^24.7.2",
|
|
113
113
|
"@types/react": "^19.1.0",
|
|
114
114
|
"@types/react-dom": "^19.1.0",
|
|
@@ -27,8 +27,9 @@ import {
|
|
|
27
27
|
getLanguageFlag,
|
|
28
28
|
} from '@djangocfg/ui-core/components';
|
|
29
29
|
|
|
30
|
-
// Default locale labels
|
|
30
|
+
// Default locale labels (supports both simple codes and regional variants)
|
|
31
31
|
const DEFAULT_LABELS: Record<string, string> = {
|
|
32
|
+
// Major languages
|
|
32
33
|
en: 'English',
|
|
33
34
|
ru: 'Русский',
|
|
34
35
|
ko: '한국어',
|
|
@@ -45,6 +46,57 @@ const DEFAULT_LABELS: Record<string, string> = {
|
|
|
45
46
|
pl: 'Polski',
|
|
46
47
|
nl: 'Nederlands',
|
|
47
48
|
uk: 'Українська',
|
|
49
|
+
|
|
50
|
+
// Regional variants
|
|
51
|
+
'pt-br': 'Português (Brasil)',
|
|
52
|
+
'pt-BR': 'Português (Brasil)',
|
|
53
|
+
'pt-pt': 'Português (Portugal)',
|
|
54
|
+
'pt-PT': 'Português (Portugal)',
|
|
55
|
+
'zh-cn': '简体中文',
|
|
56
|
+
'zh-CN': '简体中文',
|
|
57
|
+
'zh-tw': '繁體中文',
|
|
58
|
+
'zh-TW': '繁體中文',
|
|
59
|
+
'en-us': 'English (US)',
|
|
60
|
+
'en-US': 'English (US)',
|
|
61
|
+
'en-gb': 'English (UK)',
|
|
62
|
+
'en-GB': 'English (UK)',
|
|
63
|
+
'es-mx': 'Español (México)',
|
|
64
|
+
'es-MX': 'Español (México)',
|
|
65
|
+
'es-es': 'Español (España)',
|
|
66
|
+
'es-ES': 'Español (España)',
|
|
67
|
+
'fr-ca': 'Français (Canada)',
|
|
68
|
+
'fr-CA': 'Français (Canada)',
|
|
69
|
+
|
|
70
|
+
// Scandinavian languages
|
|
71
|
+
sv: 'Svenska',
|
|
72
|
+
no: 'Norsk',
|
|
73
|
+
nb: 'Norsk Bokmål',
|
|
74
|
+
nn: 'Norsk Nynorsk',
|
|
75
|
+
da: 'Dansk',
|
|
76
|
+
fi: 'Suomi',
|
|
77
|
+
is: 'Íslenska',
|
|
78
|
+
|
|
79
|
+
// Other European
|
|
80
|
+
cs: 'Čeština',
|
|
81
|
+
sk: 'Slovenčina',
|
|
82
|
+
hu: 'Magyar',
|
|
83
|
+
ro: 'Română',
|
|
84
|
+
bg: 'Български',
|
|
85
|
+
hr: 'Hrvatski',
|
|
86
|
+
sr: 'Српски',
|
|
87
|
+
sl: 'Slovenščina',
|
|
88
|
+
et: 'Eesti',
|
|
89
|
+
lv: 'Latviešu',
|
|
90
|
+
lt: 'Lietuvių',
|
|
91
|
+
el: 'Ελληνικά',
|
|
92
|
+
|
|
93
|
+
// Other
|
|
94
|
+
th: 'ไทย',
|
|
95
|
+
vi: 'Tiếng Việt',
|
|
96
|
+
id: 'Indonesia',
|
|
97
|
+
ms: 'Bahasa Melayu',
|
|
98
|
+
he: 'עברית',
|
|
99
|
+
fa: 'فارسی',
|
|
48
100
|
};
|
|
49
101
|
|
|
50
102
|
export interface LocaleSwitcherProps {
|