Skip to content

Commit

Permalink
fix: upd translations on masquerade widget (openedx#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Halii authored and Anna Halii committed Aug 11, 2022
1 parent dc183ef commit 29ec622
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ class MasqueradeWidget extends Component {
masqueradeUsername,
} = this.state;
const specificLearnerInputText = this.props.intl.formatMessage(messages.placeholder);
const viewCourseAsTextLabel = this.props.intl.formatMessage(messages.viewCourseAs);
return (
<div className="flex-grow-1">
<div className="row">
<span className="col-auto col-form-label pl-3">View this course as:</span>
<span className="col-auto col-form-label pl-3">{viewCourseAsTextLabel}</span>
<Dropdown className="flex-shrink-1 mx-1">
<Dropdown.Toggle variant="inverse-outline-primary">
{masquerade}
Expand Down
5 changes: 5 additions & 0 deletions src/instructor-toolbar/masquerade-widget/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ const messages = defineMessages({
defaultMessage: 'Masquerade as this user',
description: 'Label for the masquerade user input',
},
viewCourseAs: {
id: 'masquerade-widget.viewCourseAs.text.label',
defaultMessage: 'View this course as:',
description: 'Label for the view this course as',
},
});

export default messages;

0 comments on commit 29ec622

Please sign in to comment.