Skip to content

Commit

Permalink
Merge pull request #7336 from pcbailey/localize-bare-metal-hosts-nav-…
Browse files Browse the repository at this point in the history
…name

Localize the Bare Metal Hosts side nav name
  • Loading branch information
openshift-merge-robot committed Dec 3, 2020
2 parents f302424 + 1811e23 commit 203c628
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/packages/metal3-plugin/src/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
CustomFeatureFlag,
ResourceTabPage,
} from '@console/plugin-sdk';
import '@console/internal/i18n.js';
import { referenceForModel } from '@console/internal/module/k8s';
import { MachineModel, NodeModel, CertificateSigningRequestModel } from '@console/internal/models';
// TODO(jtomasek): change this to '@console/shared/src/utils' once @console/shared/src/utils modules
Expand Down Expand Up @@ -95,7 +96,8 @@ const plugin: Plugin<ConsumedExtensions> = [
id: 'baremetal',
section: 'compute',
componentProps: {
name: 'Bare Metal Hosts',
// t('metal3-plugin~Bare Metal Hosts')
name: '%metal3-plugin~Bare Metal Hosts%',
href: formatNamespacedRouteForResource(
referenceForModel(BareMetalHostModel),
'openshift-machine-api',
Expand Down Expand Up @@ -316,7 +318,8 @@ const plugin: Plugin<ConsumedExtensions> = [
properties: {
href: 'nics',
model: NodeModel,
name: 'Network Interfaces',
// t('metal3-plugin~Network Interfaces')
name: '%metal3-plugin~Network Interfaces%',
loader: () =>
import('./components/baremetal-nodes/NICsPage').then(
(m) => m.default,
Expand All @@ -331,7 +334,8 @@ const plugin: Plugin<ConsumedExtensions> = [
properties: {
href: 'disks',
model: NodeModel,
name: 'Disks',
// t('metal3-plugin~Disks')
name: '%metal3-plugin~Disks%',
loader: () =>
import('./components/baremetal-nodes/DisksPage').then(
(m) => m.default,
Expand Down
1 change: 1 addition & 0 deletions frontend/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ const config: Configuration = {
new CopyWebpackPlugin([{ from: './packages/kubevirt-plugin/locales', to: 'locales' }]),
new CopyWebpackPlugin([{ from: './packages/ceph-storage-plugin/locales', to: 'locales' }]),
new CopyWebpackPlugin([{ from: './packages/noobaa-storage-plugin/locales', to: 'locales' }]),
new CopyWebpackPlugin([{ from: './packages/metal3-plugin/locales', to: 'locales' }]),
new MomentLocalesPlugin({
localesToKeep: ['en', 'ja', 'ko'],
}),
Expand Down

0 comments on commit 203c628

Please sign in to comment.