Skip to content

Commit e6b7245

Browse files
Muhammad Faraz  MaqsoodFaraz32123
authored andcommitted
chore: add missing problem text for localization
1 parent 0820a1e commit e6b7245

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/editors/containers/ProblemEditor/components/SelectTypeModal/content/Preview.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Preview = ({
2121
return (
2222
<Container style={{ width: '494px', height: '400px' }} className="bg-light-300 rounded p-4">
2323
<div className="small">
24-
<FormattedMessage {...messages[`problemType.${problemType}.title`]} /> problem
24+
<FormattedMessage {...messages[`problemType.${problemType}.title`]} /> {intl.formatMessage(messages.problemTextInPreviewTitle)}
2525
</div>
2626
<Image
2727
fluid

src/editors/containers/ProblemEditor/components/SelectTypeModal/content/messages.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ const messages = defineMessages({
139139
}`,
140140
description: 'Message for support status tooltip',
141141
},
142+
problemTextInPreviewTitle: {
143+
id: 'authoring.problemEditor.preview.problemTextInPreviewTitle',
144+
defaultMessage: 'problem',
145+
description: 'Problem text in title for the problem preview column',
146+
},
142147
previewTitle: {
143148
id: 'authoring.problemEditor.preview.title',
144149
defaultMessage: '{previewTitle} problem',

0 commit comments

Comments
 (0)