Fix Create dropdown menu not changing language (#10023)

Co-authored-by: Lucas Martins <lucas.martins@scclouds.com.br>
This commit is contained in:
Lucas Martins 2024-12-05 06:05:49 -03:00 committed by GitHub
parent 0eb94a1396
commit 4c801e24f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 16 deletions

View File

@ -422,6 +422,8 @@
"label.cputotalghz": "Total", "label.cputotalghz": "Total",
"label.cpuused": "CPU utilizada", "label.cpuused": "CPU utilizada",
"label.cpuusedghz": "CPU utilizada", "label.cpuusedghz": "CPU utilizada",
"label.create": "Criar",
"label.create.instance": "Criar nova instância",
"label.create.account": "Criar conta", "label.create.account": "Criar conta",
"label.create.backup": "Iniciar backup", "label.create.backup": "Iniciar backup",
"label.create.network": "Criar nova rede", "label.create.network": "Criar nova rede",
@ -1756,6 +1758,7 @@
"label.vmwaredcname": "Nome do datacenter VMware", "label.vmwaredcname": "Nome do datacenter VMware",
"label.vmwaredcvcenter": "Vcednter do datacenter VMware", "label.vmwaredcvcenter": "Vcednter do datacenter VMware",
"label.vmwarenetworklabel": "Etiqueta de tr\u00e1fego VMware", "label.vmwarenetworklabel": "Etiqueta de tr\u00e1fego VMware",
"label.vnf.appliance.add": "Adicionar VNF Appliance",
"label.vnmc": "VNMC", "label.vnmc": "VNMC",
"label.volgroup": "Grupo de volume", "label.volgroup": "Grupo de volume",
"label.volume": "Disco", "label.volume": "Disco",

View File

@ -32,9 +32,9 @@
</a-col> </a-col>
<a-col> <a-col>
<h3 style="margin-bottom: 0px;"> <h3 style="margin-bottom: 0px;">
{{ menuItem.title }} {{ $t(menuItem.title) }}
</h3> </h3>
<small>{{ menuItem.subtitle }}</small> <small>{{ $t(menuItem.subtitle) }}</small>
</a-col> </a-col>
</a-row> </a-row>
</router-link> </router-link>
@ -56,50 +56,50 @@ export default {
const menuItems = [ const menuItems = [
{ {
api: 'deployVirtualMachine', api: 'deployVirtualMachine',
title: this.$t('label.instance'), title: 'label.instance',
subtitle: this.$t('label.create.instance'), subtitle: 'label.create.instance',
icon: 'cloud-server-outlined', icon: 'cloud-server-outlined',
route: { path: '/action/deployVirtualMachine' } route: { path: '/action/deployVirtualMachine' }
}, },
{ {
api: 'createKubernetesCluster', api: 'createKubernetesCluster',
title: this.$t('label.kubernetes'), title: 'label.kubernetes',
subtitle: this.$t('label.kubernetes.cluster.create'), subtitle: 'label.kubernetes.cluster.create',
icon: ['fa-solid', 'fa-dharmachakra'], icon: ['fa-solid', 'fa-dharmachakra'],
route: { path: '/kubernetes', query: { action: 'createKubernetesCluster' } } route: { path: '/kubernetes', query: { action: 'createKubernetesCluster' } }
}, },
{ {
api: 'createVolume', api: 'createVolume',
title: this.$t('label.volume'), title: 'label.volume',
subtitle: this.$t('label.action.create.volume'), subtitle: 'label.action.create.volume',
icon: 'hdd-outlined', icon: 'hdd-outlined',
route: { path: '/volume', query: { action: 'createVolume' } } route: { path: '/volume', query: { action: 'createVolume' } }
}, },
{ {
api: 'createNetwork', api: 'createNetwork',
title: this.$t('label.network'), title: 'label.network',
subtitle: this.$t('label.add.network'), subtitle: 'label.add.network',
icon: 'apartment-outlined', icon: 'apartment-outlined',
route: { path: '/guestnetwork', query: { action: 'createNetwork' } } route: { path: '/guestnetwork', query: { action: 'createNetwork' } }
}, },
{ {
api: 'createVPC', api: 'createVPC',
title: this.$t('label.vpc'), title: 'label.vpc',
subtitle: this.$t('label.add.vpc'), subtitle: 'label.add.vpc',
icon: 'deployment-unit-outlined', icon: 'deployment-unit-outlined',
route: { path: '/vpc', query: { action: 'createVPC' } } route: { path: '/vpc', query: { action: 'createVPC' } }
}, },
{ {
api: 'registerTemplate', api: 'registerTemplate',
title: this.$t('label.templatename'), title: 'label.templatename',
subtitle: this.$t('label.action.register.template'), subtitle: 'label.action.register.template',
icon: 'picture-outlined', icon: 'picture-outlined',
route: { path: '/template', query: { action: 'registerTemplate' } } route: { path: '/template', query: { action: 'registerTemplate' } }
}, },
{ {
api: 'deployVnfAppliance', api: 'deployVnfAppliance',
title: this.$t('label.vnf.appliance'), title: 'label.vnf.appliance',
subtitle: this.$t('label.vnf.appliance.add'), subtitle: 'label.vnf.appliance.add',
icon: 'gateway-outlined', icon: 'gateway-outlined',
route: { path: '/action/deployVnfAppliance' } route: { path: '/action/deployVnfAppliance' }
} }