bfg-common 1.3.214 → 1.3.216

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.
@@ -104,6 +104,7 @@
104
104
  "assignFreePhysicalNetworkAdaptersToTheNewSwitch": "为新交换机分配空闲物理网络适配器。",
105
105
  "assignLicense": "分配許可證",
106
106
  "assignmentValidation": "分配驗證",
107
+ "assignmentValidationFor": "{0} 的分配验证",
107
108
  "assignPhysicalNetworkAdaptersToTheSwitch": "为交换机分配物理网络适配器。",
108
109
  "assignTag": "分配标签",
109
110
  "atLeast": "至少",
@@ -2336,5 +2337,6 @@
2336
2337
  "weekShort": "周",
2337
2338
  "monthShort": "月",
2338
2339
  "yearShort": "年",
2339
- "noNetworks": "没有网络"
2340
+ "noNetworks": "没有网络",
2341
+ "licenseName": "许可证名称"
2340
2342
  }
@@ -1,266 +1,266 @@
1
- /* _____BACKGROUND POSITION_____ */
2
- .vx-icon-vmEdit {
3
- background-position: 0 98.7324883256%;
4
- }
5
- .vx-icon-vmManageSnapshots {
6
- background-position: 0 100%;
7
- }
8
- .vm-ui-icon-vmSuspend {
9
- background-position: 0 8.7391594396%;
10
- }
11
- .vsphere-icon-vm-pending, // TODO найти нужный
12
- .vsphere-icon-vm {
13
- background-position: 0 63.242161441%;
14
- }
15
- .vsphere-icon-vm-suspended {
16
- background-position: 0 94.9299533022%;
17
- }
18
- .vsphere-icon-vm-on {
19
- background-position: 0 75.9172781855%;
20
- }
21
- .vsphere-icon-vm-error {
22
- background-position: 0 70.8472%;
23
- }
24
- .vsphere-icon-vm-warning {
25
- background-position: 0 97.465%;
26
- }
27
- .vsphere-icon-vm-template {
28
- background-position: 0 96.1974649767%;
29
- }
30
- .vsphere-icon-vm-add {
31
- background-position: 0 64.5096731154%;
32
- }
33
- .icon32-error {
34
- background-position: 0 22.6817878586%;
35
- }
36
- .icon-toolbar-remove {
37
- background-position: 0 23.949299533%;
38
- }
39
- .icon-remove {
40
- background-position: 0 74.649766511%;
41
- }
42
- .vsphere-icon-vcenter {
43
- //background-position: 0 54.3695797198%;
44
- }
45
- .vsphere-icon-vm-templates-24x {
46
- background-position: 0 96.1974649767%;
47
- }
48
- .icon-tags-custom-attributes {
49
- background-position: 0 12.541694463%;
50
- }
51
- .vsphere-icon-user {
52
- background-position: 0 37.891927952%;
53
- }
54
- .icon-tasks {
55
- background-position: 0 17.6117411608%;
56
- }
57
- .icon-vm-customizationManager-32x {
58
- background-position: 0 65.79%;
59
- }
60
- .icon-storage-profile-32x {
61
- background-position: 0 2.6%;
62
- }
63
- .vsphere-icon-vapp {
64
- background-position: 0 40.4269513009%;
65
- }
66
- .vsphere-icon-vapp-add {
67
- background-position: 0 41.6944629753%;
68
- }
69
- .vsphere-icon-vapp-edit {
70
- background-position: 0 42.9619746498%;
71
- }
72
- .vsphere-icon-vapp-managed {
73
- background-position: 0 44.2294863242%;
74
- }
75
- .vsphere-icon-vapp-running {
76
- background-position: 0 45.4969979987%;
77
- }
78
- .vsphere-icon-vapp-running {
79
- background-position: 0 45.4969979987%;
80
- }
81
- .vsphere-icon-vapp-running-managed {
82
- background-position: 0 46.7645096731%;
83
- }
84
- .vsphere-icon-vapp-suspended {
85
- background-position: 0 48.0320213476%;
86
- }
87
- .vsphere-icon-vapp-suspended-managed {
88
- background-position: 0 49.299533022%;
89
- }
90
- .vsphere-icon-vapp-template {
91
- background-position: 0 50.5670446965%;
92
- }
93
- .vsphere-icon-virtual-port-group {
94
- background-position: 0 55.6370913943%;
95
- }
96
- .icon-vSphere-dsVmDisk {
97
- background-position: 0 67.0446964643%;
98
- }
99
- .vsphere-icon-snapshot-run {
100
- background-position: 0 91%;
101
- }
102
- .icon-roll-back {
103
- background-position: 0 26.4843228819%;
104
- }
105
- .vsphere-icon-tag-assign {
106
- background-position: 0 15.0767178119%;
107
- }
108
- .vsphere-icon-tag-remove {
109
- background-position: 0 16.3442294863%;
110
- }
111
- .vx-icon-removeIcon {
112
- background-position: 0 74.649766511%;
113
- }
114
- .vsphere-icon-storage-system-refresh {
115
- background-position: 0 3.8025350233%;
116
- }
117
- .vx-icon-temp {
118
- background-position: 0 18.8792528352%;
119
- }
120
-
121
- /* _____BACKGROUND IMAGE_____ */
122
- .icon-roll-back,
123
- .icon-vSphere-dsVmDisk,
124
- .vsphere-icon-virtual-port-group,
125
- .vsphere-icon-vapp,
126
- .vsphere-icon-vapp-add,
127
- .vsphere-icon-vapp-edit,
128
- .vsphere-icon-vapp-managed,
129
- .vsphere-icon-vapp-running,
130
- .vsphere-icon-vapp-running-managed,
131
- .vsphere-icon-vapp-suspended,
132
- .vsphere-icon-vapp-suspended-managed,
133
- .vsphere-icon-vapp-template,
134
- .vsphere-icon-tag-assign,
135
- .vsphere-icon-tag-remove,
136
- .vx-icon-vmEdit,
137
- .vx-icon-vmManageSnapshots,
138
- .vm-ui-icon-vmSuspend,
139
- .vsphere-icon-vm-pending,
140
- .vsphere-icon-vm,
141
- .vsphere-icon-vm-suspended,
142
- .vsphere-icon-vm-on,
143
- .vsphere-icon-vm-error,
144
- .vsphere-icon-vm-warning,
145
- .vsphere-icon-vm-template,
146
- .vsphere-icon-vm-add,
147
- .icon32-error,
148
- .icon-toolbar-remove,
149
- .icon-remove,
150
- //.vsphere-icon-vcenter,
151
- .vsphere-icon-vm-templates-24x,
152
- .icon-tags-custom-attributes,
153
- .vsphere-icon-user,
154
- .icon-vm-customizationManager-32x,
155
- .icon-storage-profile-32x,
156
- .icon-tasks,
157
- .vx-icon-removeIcon,
158
- .vsphere-icon-storage-system-refresh,
159
- .vsphere-icon-snapshot-run,
160
- .vx-icon-temp {
161
- background-image: url('assets/img/icons/icons-sprite-light-4.svg');
162
- html.dark-theme & {
163
- background-image: url('assets/img/icons/icons-sprite-dark-4.svg');
164
- }
165
- }
166
- .active .icon-roll-back,
167
- .active .icon-vSphere-dsVmDisk,
168
- .active .vsphere-icon-virtual-port-group,
169
- .active .vsphere-icon-vapp,
170
- .active .vsphere-icon-vapp-add,
171
- .active .vsphere-icon-vapp-edit,
172
- .active .vsphere-icon-vapp-managed,
173
- .active .vsphere-icon-vapp-running,
174
- .active .vsphere-icon-vapp-running-managed,
175
- .active .vsphere-icon-vapp-suspended,
176
- .active .vsphere-icon-vapp-suspended-managed,
177
- .active .vsphere-icon-vapp-template,
178
- .active .vsphere-icon-tag-assign,
179
- .active .vsphere-icon-tag-remove,
180
- .active .vx-icon-vmEdit,
181
- .active .vx-icon-vmManageSnapshots,
182
- .active .vm-ui-icon-vmSuspend,
183
- .active .vsphere-icon-vm-pending,
184
- .active .vsphere-icon-vm,
185
- .active .vsphere-icon-vm-suspended,
186
- .active .vsphere-icon-vm-on,
187
- .active .vsphere-icon-vm-error,
188
- .active .vsphere-icon-vm-warning,
189
- .active .vsphere-icon-vm-template,
190
- .active .vsphere-icon-vm-add,
191
- .active .icon32-error,
192
- .active .icon-toolbar-remove,
193
- .active .icon-remove,
194
- //.active .vsphere-icon-vcenter,
195
- .active .icon-tags-custom-attributes,
196
- .active .vsphere-icon-user,
197
- .active .icon-vm-customizationManager-32x .active .icon-tasks,
198
- .active .icon-tasks,
199
- .active .vx-icon-removeIcon,
200
- .active .vsphere-icon-storage-system-refresh,
201
- .active .vsphere-icon-snapshot-run,
202
- .active .vx-icon-temp {
203
- background-image: url('assets/img/icons/icons-sprite-dark-4.svg');
204
-
205
- html.dark-theme & {
206
- background-image: url('assets/img/icons/icons-sprite-light-4.svg');
207
- }
208
- }
209
-
210
- /* _____ICONS COMMON STYLES_____ */
211
- .icon32-error {
212
- width: 32px;
213
- min-width: 32px;
214
- height: 32px;
215
- min-height: 32px;
216
- background-size: 100% auto;
217
- }
218
- .vsphere-icon-vm-templates-24x {
219
- width: 26px;
220
- min-width: 26px;
221
- height: 26px;
222
- min-height: 26px;
223
- background-size: 100% auto;
224
- }
225
-
226
- .icon-roll-back,
227
- .icon-vSphere-dsVmDisk,
228
- .vsphere-icon-virtual-port-group,
229
- .vsphere-icon-vapp,
230
- .vsphere-icon-vapp-add,
231
- .vsphere-icon-vapp-edit,
232
- .vsphere-icon-vapp-managed,
233
- .vsphere-icon-vapp-running,
234
- .vsphere-icon-vapp-running-managed,
235
- .vsphere-icon-vapp-suspended,
236
- .vsphere-icon-vapp-suspended-managed,
237
- .vsphere-icon-vapp-template,
238
- .vsphere-icon-tag-assign,
239
- .vsphere-icon-tag-remove,
240
- .vx-icon-vmEdit,
241
- .vx-icon-vmManageSnapshots,
242
- .vm-ui-icon-vmSuspend,
243
- .vsphere-icon-vm-pending,
244
- .vsphere-icon-vm,
245
- .vsphere-icon-vm-suspended,
246
- .vsphere-icon-vm-on,
247
- .vsphere-icon-vm-error,
248
- .vsphere-icon-vm-warning,
249
- .vsphere-icon-vm-template,
250
- .vsphere-icon-vm-add,
251
- .icon-toolbar-remove,
252
- .icon-remove,
253
- .vsphere-icon-vcenter,
254
- .icon-tags-custom-attributes,
255
- .icon-tasks,
256
- .vsphere-icon-user,
257
- .vx-icon-removeIcon,
258
- .vsphere-icon-storage-system-refresh,
259
- .vsphere-icon-snapshot-run,
260
- .vx-icon-temp {
261
- width: 18px;
262
- min-width: 18px;
263
- height: 18px;
264
- min-height: 18px;
265
- background-size: 100% auto;
266
- }
1
+ /* _____BACKGROUND POSITION_____ */
2
+ .vx-icon-vmEdit {
3
+ background-position: 0 98.7324883256%;
4
+ }
5
+ .vx-icon-vmManageSnapshots {
6
+ background-position: 0 100%;
7
+ }
8
+ .vm-ui-icon-vmSuspend {
9
+ background-position: 0 8.7391594396%;
10
+ }
11
+ .vsphere-icon-vm-pending, // TODO найти нужный
12
+ .vsphere-icon-vm {
13
+ background-position: 0 63.242161441%;
14
+ }
15
+ .vsphere-icon-vm-suspended {
16
+ background-position: 0 94.9299533022%;
17
+ }
18
+ .vsphere-icon-vm-on {
19
+ background-position: 0 75.9172781855%;
20
+ }
21
+ .vsphere-icon-vm-error {
22
+ background-position: 0 70.8472%;
23
+ }
24
+ .vsphere-icon-vm-warning {
25
+ background-position: 0 97.465%;
26
+ }
27
+ .vsphere-icon-vm-template {
28
+ background-position: 0 96.1974649767%;
29
+ }
30
+ .vsphere-icon-vm-add {
31
+ background-position: 0 64.5096731154%;
32
+ }
33
+ .icon32-error {
34
+ background-position: 0 22.6817878586%;
35
+ }
36
+ .icon-toolbar-remove {
37
+ background-position: 0 23.949299533%;
38
+ }
39
+ .icon-remove {
40
+ background-position: 0 74.649766511%;
41
+ }
42
+ .vsphere-icon-vcenter {
43
+ //background-position: 0 54.3695797198%;
44
+ }
45
+ .vsphere-icon-vm-templates-24x {
46
+ background-position: 0 96.1974649767%;
47
+ }
48
+ .icon-tags-custom-attributes {
49
+ background-position: 0 12.541694463%;
50
+ }
51
+ .vsphere-icon-user {
52
+ background-position: 0 37.891927952%;
53
+ }
54
+ .icon-tasks {
55
+ background-position: 0 17.6117411608%;
56
+ }
57
+ .icon-vm-customizationManager-32x {
58
+ background-position: 0 65.79%;
59
+ }
60
+ .icon-storage-profile-32x {
61
+ background-position: 0 2.6%;
62
+ }
63
+ .vsphere-icon-vapp {
64
+ background-position: 0 40.4269513009%;
65
+ }
66
+ .vsphere-icon-vapp-add {
67
+ background-position: 0 41.6944629753%;
68
+ }
69
+ .vsphere-icon-vapp-edit {
70
+ background-position: 0 42.9619746498%;
71
+ }
72
+ .vsphere-icon-vapp-managed {
73
+ background-position: 0 44.2294863242%;
74
+ }
75
+ .vsphere-icon-vapp-running {
76
+ background-position: 0 45.4969979987%;
77
+ }
78
+ .vsphere-icon-vapp-running {
79
+ background-position: 0 45.4969979987%;
80
+ }
81
+ .vsphere-icon-vapp-running-managed {
82
+ background-position: 0 46.7645096731%;
83
+ }
84
+ .vsphere-icon-vapp-suspended {
85
+ background-position: 0 48.0320213476%;
86
+ }
87
+ .vsphere-icon-vapp-suspended-managed {
88
+ background-position: 0 49.299533022%;
89
+ }
90
+ .vsphere-icon-vapp-template {
91
+ background-position: 0 50.5670446965%;
92
+ }
93
+ .vsphere-icon-virtual-port-group {
94
+ background-position: 0 55.6370913943%;
95
+ }
96
+ .icon-vSphere-dsVmDisk {
97
+ background-position: 0 67.0446964643%;
98
+ }
99
+ .vsphere-icon-snapshot-run {
100
+ background-position: 0 91%;
101
+ }
102
+ .icon-roll-back {
103
+ background-position: 0 26.4843228819%;
104
+ }
105
+ .vsphere-icon-tag-assign {
106
+ background-position: 0 15.0767178119%;
107
+ }
108
+ .vsphere-icon-tag-remove {
109
+ background-position: 0 16.3442294863%;
110
+ }
111
+ .vx-icon-removeIcon {
112
+ background-position: 0 74.649766511%;
113
+ }
114
+ .vsphere-icon-storage-system-refresh {
115
+ background-position: 0 3.8025350233%;
116
+ }
117
+ .vx-icon-temp {
118
+ background-position: 0 18.8792528352%;
119
+ }
120
+
121
+ /* _____BACKGROUND IMAGE_____ */
122
+ .icon-roll-back,
123
+ .icon-vSphere-dsVmDisk,
124
+ .vsphere-icon-virtual-port-group,
125
+ .vsphere-icon-vapp,
126
+ .vsphere-icon-vapp-add,
127
+ .vsphere-icon-vapp-edit,
128
+ .vsphere-icon-vapp-managed,
129
+ .vsphere-icon-vapp-running,
130
+ .vsphere-icon-vapp-running-managed,
131
+ .vsphere-icon-vapp-suspended,
132
+ .vsphere-icon-vapp-suspended-managed,
133
+ .vsphere-icon-vapp-template,
134
+ .vsphere-icon-tag-assign,
135
+ .vsphere-icon-tag-remove,
136
+ .vx-icon-vmEdit,
137
+ .vx-icon-vmManageSnapshots,
138
+ .vm-ui-icon-vmSuspend,
139
+ .vsphere-icon-vm-pending,
140
+ .vsphere-icon-vm,
141
+ .vsphere-icon-vm-suspended,
142
+ .vsphere-icon-vm-on,
143
+ .vsphere-icon-vm-error,
144
+ .vsphere-icon-vm-warning,
145
+ .vsphere-icon-vm-template,
146
+ .vsphere-icon-vm-add,
147
+ .icon32-error,
148
+ .icon-toolbar-remove,
149
+ .icon-remove,
150
+ //.vsphere-icon-vcenter,
151
+ .vsphere-icon-vm-templates-24x,
152
+ .icon-tags-custom-attributes,
153
+ .vsphere-icon-user,
154
+ .icon-vm-customizationManager-32x,
155
+ .icon-storage-profile-32x,
156
+ .icon-tasks,
157
+ .vx-icon-removeIcon,
158
+ .vsphere-icon-storage-system-refresh,
159
+ .vsphere-icon-snapshot-run,
160
+ .vx-icon-temp {
161
+ background-image: url('assets/img/icons/icons-sprite-light-4.svg');
162
+ html.dark-theme & {
163
+ background-image: url('assets/img/icons/icons-sprite-dark-4.svg');
164
+ }
165
+ }
166
+ .active .icon-roll-back,
167
+ .active .icon-vSphere-dsVmDisk,
168
+ .active .vsphere-icon-virtual-port-group,
169
+ .active .vsphere-icon-vapp,
170
+ .active .vsphere-icon-vapp-add,
171
+ .active .vsphere-icon-vapp-edit,
172
+ .active .vsphere-icon-vapp-managed,
173
+ .active .vsphere-icon-vapp-running,
174
+ .active .vsphere-icon-vapp-running-managed,
175
+ .active .vsphere-icon-vapp-suspended,
176
+ .active .vsphere-icon-vapp-suspended-managed,
177
+ .active .vsphere-icon-vapp-template,
178
+ .active .vsphere-icon-tag-assign,
179
+ .active .vsphere-icon-tag-remove,
180
+ .active .vx-icon-vmEdit,
181
+ .active .vx-icon-vmManageSnapshots,
182
+ .active .vm-ui-icon-vmSuspend,
183
+ .active .vsphere-icon-vm-pending,
184
+ .active .vsphere-icon-vm,
185
+ .active .vsphere-icon-vm-suspended,
186
+ .active .vsphere-icon-vm-on,
187
+ .active .vsphere-icon-vm-error,
188
+ .active .vsphere-icon-vm-warning,
189
+ .active .vsphere-icon-vm-template,
190
+ .active .vsphere-icon-vm-add,
191
+ .active .icon32-error,
192
+ .active .icon-toolbar-remove,
193
+ .active .icon-remove,
194
+ //.active .vsphere-icon-vcenter,
195
+ .active .icon-tags-custom-attributes,
196
+ .active .vsphere-icon-user,
197
+ .active .icon-vm-customizationManager-32x .active .icon-tasks,
198
+ .active .icon-tasks,
199
+ .active .vx-icon-removeIcon,
200
+ .active .vsphere-icon-storage-system-refresh,
201
+ .active .vsphere-icon-snapshot-run,
202
+ .active .vx-icon-temp {
203
+ background-image: url('assets/img/icons/icons-sprite-dark-4.svg');
204
+
205
+ html.dark-theme & {
206
+ background-image: url('assets/img/icons/icons-sprite-light-4.svg');
207
+ }
208
+ }
209
+
210
+ /* _____ICONS COMMON STYLES_____ */
211
+ .icon32-error {
212
+ width: 32px;
213
+ min-width: 32px;
214
+ height: 32px;
215
+ min-height: 32px;
216
+ background-size: 100% auto;
217
+ }
218
+ .vsphere-icon-vm-templates-24x {
219
+ width: 26px;
220
+ min-width: 26px;
221
+ height: 26px;
222
+ min-height: 26px;
223
+ background-size: 100% auto;
224
+ }
225
+
226
+ .icon-roll-back,
227
+ .icon-vSphere-dsVmDisk,
228
+ .vsphere-icon-virtual-port-group,
229
+ .vsphere-icon-vapp,
230
+ .vsphere-icon-vapp-add,
231
+ .vsphere-icon-vapp-edit,
232
+ .vsphere-icon-vapp-managed,
233
+ .vsphere-icon-vapp-running,
234
+ .vsphere-icon-vapp-running-managed,
235
+ .vsphere-icon-vapp-suspended,
236
+ .vsphere-icon-vapp-suspended-managed,
237
+ .vsphere-icon-vapp-template,
238
+ .vsphere-icon-tag-assign,
239
+ .vsphere-icon-tag-remove,
240
+ .vx-icon-vmEdit,
241
+ .vx-icon-vmManageSnapshots,
242
+ .vm-ui-icon-vmSuspend,
243
+ .vsphere-icon-vm-pending,
244
+ .vsphere-icon-vm,
245
+ .vsphere-icon-vm-suspended,
246
+ .vsphere-icon-vm-on,
247
+ .vsphere-icon-vm-error,
248
+ .vsphere-icon-vm-warning,
249
+ .vsphere-icon-vm-template,
250
+ .vsphere-icon-vm-add,
251
+ .icon-toolbar-remove,
252
+ .icon-remove,
253
+ .vsphere-icon-vcenter,
254
+ .icon-tags-custom-attributes,
255
+ .icon-tasks,
256
+ .vsphere-icon-user,
257
+ .vx-icon-removeIcon,
258
+ .vsphere-icon-storage-system-refresh,
259
+ .vsphere-icon-snapshot-run,
260
+ .vx-icon-temp {
261
+ width: 18px;
262
+ min-width: 18px;
263
+ height: 18px;
264
+ min-height: 18px;
265
+ background-size: 100% auto;
266
+ }
@@ -34,6 +34,9 @@ body p {
34
34
  b {
35
35
  font-weight: bolder;
36
36
  }
37
+ .font-weight-bold {
38
+ font-weight: 700;
39
+ }
37
40
 
38
41
  .flex {
39
42
  display: flex;
@@ -6,17 +6,17 @@ export function productNameLocal(
6
6
  const config = useRuntimeConfig()
7
7
 
8
8
  const keys = Object.keys(localization)
9
- const procuratorName =
9
+ const productName =
10
10
  config.public.LOCALIZATION_CODE === 'ru'
11
11
  ? config.public.PRODUCT_NAME_RU
12
12
  : config.public.PRODUCT_NAME_EN
13
13
 
14
- keys.forEach((key) => {
14
+ for (let key in localization) {
15
15
  localization[key] = localization[key].replaceAll(
16
16
  '{productName}',
17
- String(procuratorName)
17
+ String(productName)
18
18
  )
19
- })
19
+ }
20
20
 
21
21
  return localization
22
22
  }
@@ -1,47 +1,44 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import localRu from '~/assets/localization/local_ru.json'
3
- import localEn from '~/assets/localization/local_en.json'
4
- import localHy from '~/assets/localization/local_hy.json'
5
- import localZh from '~/assets/localization/local_zh.json'
6
- import localKk from '~/assets/localization/local_kk.json'
7
- import localBe from '~/assets/localization/local_be.json'
8
-
9
- const locals = {
10
- localRu,
11
- localEn,
12
- localHy,
13
- localZh,
14
- localKk,
15
- localBe,
16
- }
17
- export const useLocal = (): UI_I_Localization => {
18
- const config = useRuntimeConfig()
19
-
20
- const code: string = config?.public?.LOCALIZATION_CODE?.toLowerCase() || 'ru'
21
-
22
- document.getElementsByTagName('html')[0].setAttribute('lang', code)
23
-
24
- let result: UI_I_Localization = locals.localRu
25
- switch (code) {
26
- case 'ru':
27
- result = locals.localRu
28
- break
29
- case 'en':
30
- result = locals.localEn
31
- break
32
- case 'hy':
33
- result = locals.localHy
34
- break
35
- case 'zh':
36
- result = locals.localZh
37
- break
38
- case 'kk':
39
- result = locals.localKk
40
- break
41
- case 'be':
42
- result = locals.localBe
43
- break
44
- }
45
-
46
- return productNameLocal(result)
47
- }
1
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import localRu from '~/assets/localization/local_ru.json'
3
+ import localEn from '~/assets/localization/local_en.json'
4
+ import localHy from '~/assets/localization/local_hy.json'
5
+ import localZh from '~/assets/localization/local_zh.json'
6
+ import localKk from '~/assets/localization/local_kk.json'
7
+ import localBe from '~/assets/localization/local_be.json'
8
+
9
+ const locals = {
10
+ localRu,
11
+ localEn,
12
+ localHy,
13
+ localZh,
14
+ localKk,
15
+ localBe,
16
+ }
17
+ export const useLocal = (): UI_I_Localization => {
18
+ const config = useRuntimeConfig()
19
+
20
+ const code: string = config?.public?.LOCALIZATION_CODE?.toLowerCase() || 'ru'
21
+
22
+ document.getElementsByTagName('html')[0].setAttribute('lang', code)
23
+
24
+ let result: UI_I_Localization = locals.localRu
25
+ switch (code) {
26
+ case 'en':
27
+ result = locals.localEn
28
+ break
29
+ case 'hy':
30
+ result = locals.localHy
31
+ break
32
+ case 'zh':
33
+ result = locals.localZh
34
+ break
35
+ case 'kk':
36
+ result = locals.localKk
37
+ break
38
+ case 'be':
39
+ result = locals.localBe
40
+ break
41
+ }
42
+
43
+ return productNameLocal(result)
44
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.214",
4
+ "version": "1.3.216",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",