Skip to content

Commit 79f4531

Browse files
authored
lang: allow translation of accessibility label string "Edit your profile"
1 parent 5348fa1 commit 79f4531

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

react/features/toolbox/components/web/OverflowMenuProfileItem.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import React, { Component } from 'react';
44

55
import { Avatar } from '../../../base/avatar';
6+
import { translate } from '../../../base/i18n';
67
import { getLocalParticipant } from '../../../base/participants';
78
import { connect } from '../../../base/redux';
89

@@ -28,7 +29,12 @@ type Props = {
2829
* The callback to invoke when {@code OverflowMenuProfileItem} is
2930
* clicked.
3031
*/
31-
onClick: Function
32+
onClick: Function,
33+
34+
/**
35+
* Invoked to obtain translated strings.
36+
*/
37+
t: Function
3238
};
3339

3440
/**
@@ -58,7 +64,7 @@ class OverflowMenuProfileItem extends Component<Props> {
5864
* @returns {ReactElement}
5965
*/
6066
render() {
61-
const { _localParticipant, _unclickable } = this.props;
67+
const { _localParticipant, _unclickable, t } = this.props;
6268
const classNames = `overflow-menu-item ${
6369
_unclickable ? 'unclickable' : ''}`;
6470
let displayName;
@@ -71,7 +77,7 @@ class OverflowMenuProfileItem extends Component<Props> {
7177

7278
return (
7379
<li
74-
aria-label = 'Edit your profile'
80+
aria-label = { t('toolbar.accessibilityLabel.profile') }
7581
className = { classNames }
7682
onClick = { this._onClick }>
7783
<span className = 'overflow-menu-item-icon'>
@@ -119,4 +125,4 @@ function _mapStateToProps(state) {
119125
};
120126
}
121127

122-
export default connect(_mapStateToProps)(OverflowMenuProfileItem);
128+
export default translate(connect(_mapStateToProps)(OverflowMenuProfileItem));

0 commit comments

Comments
 (0)