i18n: fix global method in intel router
The change from i18n.t method to i18n.global.t for vue3 support was
missed in the Intel router and caused the pages to fail to load.
Tested:
Confirmed that pages all load correctly.
Change-Id: I9d922f0f4d5016b8a12fd48a97192a95aa646472
Signed-off-by: Jason M. Bills <jason.m.bills@intel.com>
diff --git a/src/env/router/intel.js b/src/env/router/intel.js
index 5f3ee6e..9abdc68 100644
--- a/src/env/router/intel.js
+++ b/src/env/router/intel.js
@@ -44,7 +44,7 @@
name: 'login',
component: Login,
meta: {
- title: i18n.t('appPageTitle.login'),
+ title: i18n.global.t('appPageTitle.login'),
},
},
{
@@ -52,7 +52,7 @@
name: 'change-password',
component: ChangePassword,
meta: {
- title: i18n.t('appPageTitle.changePassword'),
+ title: i18n.global.t('appPageTitle.changePassword'),
requiresAuth: true,
},
},
@@ -70,7 +70,7 @@
name: 'serial-over-lan-console',
component: SerialOverLanConsole,
meta: {
- title: i18n.t('appPageTitle.serialOverLan'),
+ title: i18n.global.t('appPageTitle.serialOverLan'),
},
},
{
@@ -78,7 +78,7 @@
name: 'kvm-console',
component: KvmConsole,
meta: {
- title: i18n.t('appPageTitle.kvm'),
+ title: i18n.global.t('appPageTitle.kvm'),
},
},
],
@@ -95,7 +95,7 @@
name: 'overview',
component: Overview,
meta: {
- title: i18n.t('appPageTitle.overview'),
+ title: i18n.global.t('appPageTitle.overview'),
},
},
{
@@ -103,7 +103,7 @@
name: 'profile-settings',
component: ProfileSettings,
meta: {
- title: i18n.t('appPageTitle.profileSettings'),
+ title: i18n.global.t('appPageTitle.profileSettings'),
},
},
{
@@ -111,7 +111,7 @@
name: 'event-logs',
component: EventLogs,
meta: {
- title: i18n.t('appPageTitle.eventLogs'),
+ title: i18n.global.t('appPageTitle.eventLogs'),
},
},
{
@@ -119,7 +119,7 @@
name: 'post-code-logs',
component: PostCodeLogs,
meta: {
- title: i18n.t('appPageTitle.postCodeLogs'),
+ title: i18n.global.t('appPageTitle.postCodeLogs'),
},
},
{
@@ -127,7 +127,7 @@
name: 'inventory',
component: Inventory,
meta: {
- title: i18n.t('appPageTitle.inventory'),
+ title: i18n.global.t('appPageTitle.inventory'),
},
},
{
@@ -135,7 +135,7 @@
name: 'sensors',
component: Sensors,
meta: {
- title: i18n.t('appPageTitle.sensors'),
+ title: i18n.global.t('appPageTitle.sensors'),
},
},
{
@@ -143,7 +143,7 @@
name: 'sessions',
component: Sessions,
meta: {
- title: i18n.t('appPageTitle.sessions'),
+ title: i18n.global.t('appPageTitle.sessions'),
},
},
{
@@ -151,7 +151,7 @@
name: 'user-management',
component: UserManagement,
meta: {
- title: i18n.t('appPageTitle.userManagement'),
+ title: i18n.global.t('appPageTitle.userManagement'),
},
},
{
@@ -159,7 +159,7 @@
name: 'policies',
component: Policies,
meta: {
- title: i18n.t('appPageTitle.policies'),
+ title: i18n.global.t('appPageTitle.policies'),
},
},
{
@@ -167,7 +167,7 @@
name: 'certificates',
component: Certificates,
meta: {
- title: i18n.t('appPageTitle.certificates'),
+ title: i18n.global.t('appPageTitle.certificates'),
},
},
{
@@ -175,7 +175,7 @@
name: 'date-time',
component: DateTime,
meta: {
- title: i18n.t('appPageTitle.dateTime'),
+ title: i18n.global.t('appPageTitle.dateTime'),
},
},
{
@@ -183,7 +183,7 @@
name: 'kvm',
component: Kvm,
meta: {
- title: i18n.t('appPageTitle.kvm'),
+ title: i18n.global.t('appPageTitle.kvm'),
},
},
{
@@ -191,7 +191,7 @@
name: 'firmware',
component: Firmware,
meta: {
- title: i18n.t('appPageTitle.firmware'),
+ title: i18n.global.t('appPageTitle.firmware'),
},
},
{
@@ -199,7 +199,7 @@
name: 'network',
component: Network,
meta: {
- title: i18n.t('appPageTitle.network'),
+ title: i18n.global.t('appPageTitle.network'),
},
},
{
@@ -207,7 +207,7 @@
name: 'power',
component: Power,
meta: {
- title: i18n.t('appPageTitle.power'),
+ title: i18n.global.t('appPageTitle.power'),
},
},
{
@@ -215,7 +215,7 @@
name: 'reboot-bmc',
component: RebootBmc,
meta: {
- title: i18n.t('appPageTitle.rebootBmc'),
+ title: i18n.global.t('appPageTitle.rebootBmc'),
},
},
{
@@ -223,7 +223,7 @@
name: 'serial-over-lan',
component: SerialOverLan,
meta: {
- title: i18n.t('appPageTitle.serialOverLan'),
+ title: i18n.global.t('appPageTitle.serialOverLan'),
exclusiveToRoles: [roles.administrator],
},
},
@@ -232,7 +232,7 @@
name: 'server-power-operations',
component: ServerPowerOperations,
meta: {
- title: i18n.t('appPageTitle.serverPowerOperations'),
+ title: i18n.global.t('appPageTitle.serverPowerOperations'),
},
},
{
@@ -240,7 +240,7 @@
name: 'virtual-media',
component: VirtualMedia,
meta: {
- title: i18n.t('appPageTitle.virtualMedia'),
+ title: i18n.global.t('appPageTitle.virtualMedia'),
exclusiveToRoles: [roles.administrator],
},
},
@@ -249,7 +249,7 @@
name: 'page-not-found',
component: PageNotFound,
meta: {
- title: i18n.t('appPageTitle.pageNotFound'),
+ title: i18n.global.t('appPageTitle.pageNotFound'),
},
},
],