Skip to content

Commit

Permalink
i18n for column title
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <ihailong@amazon.com>
  • Loading branch information
Hailong-am committed Jul 17, 2023
1 parent 6d43f73 commit dcbbd59
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function WorkspaceColumn({ coreSetup, workspaces, record }: WorkspaceColumnProps
}, new Map<string, string>());

const publicWsName = i18n.translate('workspace.public.name', {
defaultMessage: 'Public',
defaultMessage: 'public',
});
wsLookUp?.set('public', publicWsName);

Expand All @@ -52,7 +52,9 @@ export function getWorkspaceColumn(
euiColumn: {
align: 'left',
field: 'workspaces',
name: 'Workspaces',
name: i18n.translate('savedObjectsManagement.objectsTable.table.columnWorkspacesName', {
defaultMessage: 'Workspaces',
}),
render: (workspaces: string[], record: SavedObjectsManagementRecord) => {
return <WorkspaceColumn coreSetup={coreSetup} workspaces={workspaces} record={record} />;
},
Expand Down

0 comments on commit dcbbd59

Please sign in to comment.