MediaGallery: Localize Media and Documents tab headers
This commit is contained in:
parent
a77861e5c4
commit
87a5ddc437
1 changed files with 3 additions and 2 deletions
|
@ -89,19 +89,20 @@ export class MediaGallery extends React.Component<Props, State> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public override render(): JSX.Element {
|
public override render(): JSX.Element {
|
||||||
|
const { i18n } = this.props;
|
||||||
const { selectedTab } = this.state;
|
const { selectedTab } = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="module-media-gallery" tabIndex={-1} ref={this.focusRef}>
|
<div className="module-media-gallery" tabIndex={-1} ref={this.focusRef}>
|
||||||
<div className="module-media-gallery__tab-container">
|
<div className="module-media-gallery__tab-container">
|
||||||
<Tab
|
<Tab
|
||||||
label="Media"
|
label={i18n('media')}
|
||||||
type="media"
|
type="media"
|
||||||
isSelected={selectedTab === 'media'}
|
isSelected={selectedTab === 'media'}
|
||||||
onSelect={this.handleTabSelect}
|
onSelect={this.handleTabSelect}
|
||||||
/>
|
/>
|
||||||
<Tab
|
<Tab
|
||||||
label="Documents"
|
label={i18n('documents')}
|
||||||
type="documents"
|
type="documents"
|
||||||
isSelected={selectedTab === 'documents'}
|
isSelected={selectedTab === 'documents'}
|
||||||
onSelect={this.handleTabSelect}
|
onSelect={this.handleTabSelect}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue