diff --git a/src/instructor-toolbar/InstructorToolbar.jsx b/src/instructor-toolbar/InstructorToolbar.jsx
index 71d968c869..9c215c7b7e 100644
--- a/src/instructor-toolbar/InstructorToolbar.jsx
+++ b/src/instructor-toolbar/InstructorToolbar.jsx
@@ -1,9 +1,11 @@
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { getConfig } from '@edx/frontend-platform';
+import { useIntl, FormattedMessage } from '@edx/frontend-platform/i18n';
import { ALERT_TYPES, AlertList } from '../generic/user-messages';
import Alert from '../generic/user-messages/Alert';
+import messages from './messages';
import MasqueradeWidget from './masquerade-widget';
import { useAccessExpirationMasqueradeBanner } from '../alerts/access-expiration-alert';
import { useCourseStartMasqueradeBanner } from '../alerts/course-start-alert';
@@ -61,7 +63,7 @@ const InstructorToolbar = (props) => {
const urlInsights = getInsightsUrl(courseId);
const urlStudio = getStudioUrl(courseId, unitId);
const [masqueradeErrorMessage, showMasqueradeError] = useState(null);
-
+ const { formatMessage } = useIntl();
const accessExpirationMasqueradeBanner = useAccessExpirationMasqueradeBanner(courseId, tab);
const courseStartDateMasqueradeBanner = useCourseStartMasqueradeBanner(courseId, tab);
@@ -75,17 +77,17 @@ const InstructorToolbar = (props) => {
{(urlStudio || urlInsights) && (
<>
- View course in:
+
>
)}
{urlStudio && (
- Studio
+ {formatMessage(messages.titleStudio)}
)}
{urlInsights && (
- Insights
+ {formatMessage(messages.titleInsights)}
)}
diff --git a/src/instructor-toolbar/masquerade-widget/MasqueradeWidget.jsx b/src/instructor-toolbar/masquerade-widget/MasqueradeWidget.jsx
index 0808f0ec41..8dd60a884e 100644
--- a/src/instructor-toolbar/masquerade-widget/MasqueradeWidget.jsx
+++ b/src/instructor-toolbar/masquerade-widget/MasqueradeWidget.jsx
@@ -2,11 +2,10 @@ import React, {
Component,
} from 'react';
import PropTypes from 'prop-types';
-import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
+import { injectIntl, intlShape, FormattedMessage } from '@edx/frontend-platform/i18n';
import { Dropdown } from '@openedx/paragon';
import { UserMessagesContext } from '../../generic/user-messages';
-
import MasqueradeUserNameInput from './MasqueradeUserNameInput';
import MasqueradeWidgetOption from './MasqueradeWidgetOption';
import {
@@ -120,7 +119,7 @@ class MasqueradeWidget extends Component {
return (
- View this course as:
+
{masquerade}
@@ -135,7 +134,7 @@ class MasqueradeWidget extends Component {
{`${specificLearnerInputText}:`}
this.onError(errorMessage)}
diff --git a/src/instructor-toolbar/masquerade-widget/messages.js b/src/instructor-toolbar/masquerade-widget/messages.js
index 4621534c63..22dfddb36a 100644
--- a/src/instructor-toolbar/masquerade-widget/messages.js
+++ b/src/instructor-toolbar/masquerade-widget/messages.js
@@ -16,6 +16,11 @@ const messages = defineMessages({
defaultMessage: 'Masquerade as this user',
description: 'Label for the masquerade user input',
},
+ titleViewAs: {
+ id: 'instructor.toolbar.view.as',
+ defaultMessage: 'View this course as:',
+ description: 'Button to view this course as',
+ },
});
export default messages;
diff --git a/src/instructor-toolbar/messages.js b/src/instructor-toolbar/messages.js
new file mode 100644
index 0000000000..ad3a6c75e5
--- /dev/null
+++ b/src/instructor-toolbar/messages.js
@@ -0,0 +1,21 @@
+import { defineMessages } from '@edx/frontend-platform/i18n';
+
+const messages = defineMessages({
+ titleViewCourseIn: {
+ id: 'instructor.toolbar.view.course',
+ defaultMessage: 'View course in:',
+ description: 'Button to view the course in the studio',
+ },
+ titleStudio: {
+ id: 'instructor.toolbar.studio',
+ defaultMessage: 'Studio',
+ description: 'Button to view in studio',
+ },
+ titleInsights: {
+ id: 'instructor.toolbar.insights',
+ defaultMessage: 'Insights',
+ description: 'Button Insights',
+ },
+});
+
+export default messages;