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 <jason.m.bills@intel.com>
diff --git a/src/env/router/ibm.js b/src/env/router/ibm.js
index 0ccf90b..0d6bf2b 100644
--- a/src/env/router/ibm.js
+++ b/src/env/router/ibm.js
@@ -41,7 +41,7 @@
name: 'login',
component: Login,
meta: {
- title: i18n.t('appPageTitle.login'),
+ title: i18n.global.t('appPageTitle.login'),
},
},
{
@@ -49,7 +49,7 @@
name: 'change-password',
component: ChangePassword,
meta: {
- title: i18n.t('appPageTitle.changePassword'),
+ title: i18n.global.t('appPageTitle.changePassword'),
requiresAuth: true,
},
},
@@ -67,7 +67,7 @@
name: 'serial-over-lan-console',
component: SerialOverLanConsole,
meta: {
- title: i18n.t('appPageTitle.serialOverLan'),
+ title: i18n.global.t('appPageTitle.serialOverLan'),
},
},
],
@@ -84,7 +84,7 @@
name: 'overview',
component: Overview,
meta: {
- title: i18n.t('appPageTitle.overview'),
+ title: i18n.global.t('appPageTitle.overview'),
},
},
{
@@ -92,7 +92,7 @@
name: 'profile-settings',
component: ProfileSettings,
meta: {
- title: i18n.t('appPageTitle.profileSettings'),
+ title: i18n.global.t('appPageTitle.profileSettings'),
},
},
{
@@ -100,7 +100,7 @@
name: 'dumps',
component: Dumps,
meta: {
- title: i18n.t('appPageTitle.dumps'),
+ title: i18n.global.t('appPageTitle.dumps'),
},
},
{
@@ -108,7 +108,7 @@
name: 'event-logs',
component: EventLogs,
meta: {
- title: i18n.t('appPageTitle.eventLogs'),
+ title: i18n.global.t('appPageTitle.eventLogs'),
},
},
{
@@ -116,7 +116,7 @@
name: 'post-code-logs',
component: PostCodeLogs,
meta: {
- title: i18n.t('appPageTitle.postCodeLogs'),
+ title: i18n.global.t('appPageTitle.postCodeLogs'),
},
},
{
@@ -124,7 +124,7 @@
name: 'inventory',
component: Inventory,
meta: {
- title: i18n.t('appPageTitle.inventory'),
+ title: i18n.global.t('appPageTitle.inventory'),
},
},
{
@@ -132,7 +132,7 @@
name: 'sensors',
component: Sensors,
meta: {
- title: i18n.t('appPageTitle.sensors'),
+ title: i18n.global.t('appPageTitle.sensors'),
},
},
{
@@ -140,7 +140,7 @@
name: 'sessions',
component: Sessions,
meta: {
- title: i18n.t('appPageTitle.sessions'),
+ title: i18n.global.t('appPageTitle.sessions'),
},
},
{
@@ -148,7 +148,7 @@
name: 'ldap',
component: Ldap,
meta: {
- title: i18n.t('appPageTitle.ldap'),
+ title: i18n.global.t('appPageTitle.ldap'),
},
},
{
@@ -156,7 +156,7 @@
name: 'user-management',
component: UserManagement,
meta: {
- title: i18n.t('appPageTitle.userManagement'),
+ title: i18n.global.t('appPageTitle.userManagement'),
},
},
{
@@ -164,7 +164,7 @@
name: 'policies',
component: Policies,
meta: {
- title: i18n.t('appPageTitle.policies'),
+ title: i18n.global.t('appPageTitle.policies'),
},
},
{
@@ -172,7 +172,7 @@
name: 'certificates',
component: Certificates,
meta: {
- title: i18n.t('appPageTitle.certificates'),
+ title: i18n.global.t('appPageTitle.certificates'),
},
},
{
@@ -180,7 +180,7 @@
name: 'date-time',
component: DateTime,
meta: {
- title: i18n.t('appPageTitle.dateTime'),
+ title: i18n.global.t('appPageTitle.dateTime'),
},
},
{
@@ -188,7 +188,7 @@
name: 'firmware',
component: Firmware,
meta: {
- title: i18n.t('appPageTitle.firmware'),
+ title: i18n.global.t('appPageTitle.firmware'),
},
},
{
@@ -196,7 +196,7 @@
name: 'network',
component: Network,
meta: {
- title: i18n.t('appPageTitle.network'),
+ title: i18n.global.t('appPageTitle.network'),
},
},
{
@@ -204,7 +204,7 @@
name: 'power-restore-policy',
component: PowerRestorePolicy,
meta: {
- title: i18n.t('appPageTitle.powerRestorePolicy'),
+ title: i18n.global.t('appPageTitle.powerRestorePolicy'),
},
},
{
@@ -212,7 +212,7 @@
name: 'power',
component: Power,
meta: {
- title: i18n.t('appPageTitle.power'),
+ title: i18n.global.t('appPageTitle.power'),
},
},
{
@@ -220,7 +220,7 @@
name: 'factory-reset',
component: FactoryReset,
meta: {
- title: i18n.t('appPageTitle.factoryReset'),
+ title: i18n.global.t('appPageTitle.factoryReset'),
},
},
{
@@ -228,7 +228,7 @@
name: 'key-clear',
component: KeyClear,
meta: {
- title: i18n.t('appPageTitle.keyClear'),
+ title: i18n.global.t('appPageTitle.keyClear'),
},
},
{
@@ -236,7 +236,7 @@
name: 'reboot-bmc',
component: RebootBmc,
meta: {
- title: i18n.t('appPageTitle.rebootBmc'),
+ title: i18n.global.t('appPageTitle.rebootBmc'),
},
},
{
@@ -244,7 +244,7 @@
name: 'serial-over-lan',
component: SerialOverLan,
meta: {
- title: i18n.t('appPageTitle.serialOverLan'),
+ title: i18n.global.t('appPageTitle.serialOverLan'),
},
},
{
@@ -252,7 +252,7 @@
name: 'server-power-operations',
component: ServerPowerOperations,
meta: {
- title: i18n.t('appPageTitle.serverPowerOperations'),
+ title: i18n.global.t('appPageTitle.serverPowerOperations'),
},
},
{
@@ -260,7 +260,7 @@
name: 'page-not-found',
component: PageNotFound,
meta: {
- title: i18n.t('appPageTitle.pageNotFound'),
+ title: i18n.global.t('appPageTitle.pageNotFound'),
},
},
],