Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 83c891d

Browse files
committed
i18n: fix global method in ibm router
The change from i18n.t method to i18n.global.t for vue3 support was missed in the IBM router. I found this on the Intel router and am pushing this for completeness, but I didn't test this environment. Tested: Did not test Change-Id: Iee1f32a82b2a2bf9e30362572486a7c109586fea Signed-off-by: Jason M. Bills <[email protected]>
1 parent 142fe91 commit 83c891d

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/env/router/ibm.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ const routes = [
4141
name: 'login',
4242
component: Login,
4343
meta: {
44-
title: i18n.t('appPageTitle.login'),
44+
title: i18n.global.t('appPageTitle.login'),
4545
},
4646
},
4747
{
4848
path: '/change-password',
4949
name: 'change-password',
5050
component: ChangePassword,
5151
meta: {
52-
title: i18n.t('appPageTitle.changePassword'),
52+
title: i18n.global.t('appPageTitle.changePassword'),
5353
requiresAuth: true,
5454
},
5555
},
@@ -67,7 +67,7 @@ const routes = [
6767
name: 'serial-over-lan-console',
6868
component: SerialOverLanConsole,
6969
meta: {
70-
title: i18n.t('appPageTitle.serialOverLan'),
70+
title: i18n.global.t('appPageTitle.serialOverLan'),
7171
},
7272
},
7373
],
@@ -84,183 +84,183 @@ const routes = [
8484
name: 'overview',
8585
component: Overview,
8686
meta: {
87-
title: i18n.t('appPageTitle.overview'),
87+
title: i18n.global.t('appPageTitle.overview'),
8888
},
8989
},
9090
{
9191
path: '/profile-settings',
9292
name: 'profile-settings',
9393
component: ProfileSettings,
9494
meta: {
95-
title: i18n.t('appPageTitle.profileSettings'),
95+
title: i18n.global.t('appPageTitle.profileSettings'),
9696
},
9797
},
9898
{
9999
path: '/logs/dumps',
100100
name: 'dumps',
101101
component: Dumps,
102102
meta: {
103-
title: i18n.t('appPageTitle.dumps'),
103+
title: i18n.global.t('appPageTitle.dumps'),
104104
},
105105
},
106106
{
107107
path: '/logs/event-logs',
108108
name: 'event-logs',
109109
component: EventLogs,
110110
meta: {
111-
title: i18n.t('appPageTitle.eventLogs'),
111+
title: i18n.global.t('appPageTitle.eventLogs'),
112112
},
113113
},
114114
{
115115
path: '/logs/post-code-logs',
116116
name: 'post-code-logs',
117117
component: PostCodeLogs,
118118
meta: {
119-
title: i18n.t('appPageTitle.postCodeLogs'),
119+
title: i18n.global.t('appPageTitle.postCodeLogs'),
120120
},
121121
},
122122
{
123123
path: '/hardware-status/inventory',
124124
name: 'inventory',
125125
component: Inventory,
126126
meta: {
127-
title: i18n.t('appPageTitle.inventory'),
127+
title: i18n.global.t('appPageTitle.inventory'),
128128
},
129129
},
130130
{
131131
path: '/hardware-status/sensors',
132132
name: 'sensors',
133133
component: Sensors,
134134
meta: {
135-
title: i18n.t('appPageTitle.sensors'),
135+
title: i18n.global.t('appPageTitle.sensors'),
136136
},
137137
},
138138
{
139139
path: '/security-and-access/sessions',
140140
name: 'sessions',
141141
component: Sessions,
142142
meta: {
143-
title: i18n.t('appPageTitle.sessions'),
143+
title: i18n.global.t('appPageTitle.sessions'),
144144
},
145145
},
146146
{
147147
path: '/security-and-access/ldap',
148148
name: 'ldap',
149149
component: Ldap,
150150
meta: {
151-
title: i18n.t('appPageTitle.ldap'),
151+
title: i18n.global.t('appPageTitle.ldap'),
152152
},
153153
},
154154
{
155155
path: '/security-and-access/user-management',
156156
name: 'user-management',
157157
component: UserManagement,
158158
meta: {
159-
title: i18n.t('appPageTitle.userManagement'),
159+
title: i18n.global.t('appPageTitle.userManagement'),
160160
},
161161
},
162162
{
163163
path: '/security-and-access/policies',
164164
name: 'policies',
165165
component: Policies,
166166
meta: {
167-
title: i18n.t('appPageTitle.policies'),
167+
title: i18n.global.t('appPageTitle.policies'),
168168
},
169169
},
170170
{
171171
path: '/security-and-access/certificates',
172172
name: 'certificates',
173173
component: Certificates,
174174
meta: {
175-
title: i18n.t('appPageTitle.certificates'),
175+
title: i18n.global.t('appPageTitle.certificates'),
176176
},
177177
},
178178
{
179179
path: '/settings/date-time',
180180
name: 'date-time',
181181
component: DateTime,
182182
meta: {
183-
title: i18n.t('appPageTitle.dateTime'),
183+
title: i18n.global.t('appPageTitle.dateTime'),
184184
},
185185
},
186186
{
187187
path: '/operations/firmware',
188188
name: 'firmware',
189189
component: Firmware,
190190
meta: {
191-
title: i18n.t('appPageTitle.firmware'),
191+
title: i18n.global.t('appPageTitle.firmware'),
192192
},
193193
},
194194
{
195195
path: '/settings/network',
196196
name: 'network',
197197
component: Network,
198198
meta: {
199-
title: i18n.t('appPageTitle.network'),
199+
title: i18n.global.t('appPageTitle.network'),
200200
},
201201
},
202202
{
203203
path: '/settings/power-restore-policy',
204204
name: 'power-restore-policy',
205205
component: PowerRestorePolicy,
206206
meta: {
207-
title: i18n.t('appPageTitle.powerRestorePolicy'),
207+
title: i18n.global.t('appPageTitle.powerRestorePolicy'),
208208
},
209209
},
210210
{
211211
path: '/resource-management/power',
212212
name: 'power',
213213
component: Power,
214214
meta: {
215-
title: i18n.t('appPageTitle.power'),
215+
title: i18n.global.t('appPageTitle.power'),
216216
},
217217
},
218218
{
219219
path: '/operations/factory-reset',
220220
name: 'factory-reset',
221221
component: FactoryReset,
222222
meta: {
223-
title: i18n.t('appPageTitle.factoryReset'),
223+
title: i18n.global.t('appPageTitle.factoryReset'),
224224
},
225225
},
226226
{
227227
path: '/operations/key-clear',
228228
name: 'key-clear',
229229
component: KeyClear,
230230
meta: {
231-
title: i18n.t('appPageTitle.keyClear'),
231+
title: i18n.global.t('appPageTitle.keyClear'),
232232
},
233233
},
234234
{
235235
path: '/operations/reboot-bmc',
236236
name: 'reboot-bmc',
237237
component: RebootBmc,
238238
meta: {
239-
title: i18n.t('appPageTitle.rebootBmc'),
239+
title: i18n.global.t('appPageTitle.rebootBmc'),
240240
},
241241
},
242242
{
243243
path: '/operations/serial-over-lan',
244244
name: 'serial-over-lan',
245245
component: SerialOverLan,
246246
meta: {
247-
title: i18n.t('appPageTitle.serialOverLan'),
247+
title: i18n.global.t('appPageTitle.serialOverLan'),
248248
},
249249
},
250250
{
251251
path: '/operations/server-power-operations',
252252
name: 'server-power-operations',
253253
component: ServerPowerOperations,
254254
meta: {
255-
title: i18n.t('appPageTitle.serverPowerOperations'),
255+
title: i18n.global.t('appPageTitle.serverPowerOperations'),
256256
},
257257
},
258258
{
259259
path: '*',
260260
name: 'page-not-found',
261261
component: PageNotFound,
262262
meta: {
263-
title: i18n.t('appPageTitle.pageNotFound'),
263+
title: i18n.global.t('appPageTitle.pageNotFound'),
264264
},
265265
},
266266
],

0 commit comments

Comments
 (0)