From 0f53984f80a1bdc229992f889d6e3e6c039ad529 Mon Sep 17 00:00:00 2001 From: Sarah Gerard Date: Wed, 17 May 2023 13:54:04 -0600 Subject: [PATCH] Fix formatMessage imports A few translations were not working due to import issues closes LF-57 flag=none test plan: - put your course in another language - in the RCE open the UploadMedia modal - upload a media file - ensure that 'File Name' is translated (look at screenshot on ticket if this is confusing) - Attempt to upload captions with a srt file more than 295000 bytes large - ensure the message "The selected file exceeds the {maxSize} Byte limit" is translated - ensure there is nothing else in the modal that needs to be translated Change-Id: I9a7d5dddc511e87a7b4b95bdc5addbcfbc5707c2 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/318444 Tested-by: Service Cloud Jenkins Reviewed-by: Jackson Howe QA-Review: Jackson Howe Product-Review: Sarah Gerard --- .../src/ClosedCaptionCreator/ClosedCaptionCreatorRow.js | 2 +- packages/canvas-media/src/ComputerPanel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/canvas-media/src/ClosedCaptionCreator/ClosedCaptionCreatorRow.js b/packages/canvas-media/src/ClosedCaptionCreator/ClosedCaptionCreatorRow.js index 2ba6830fdc7..b19e11b7581 100644 --- a/packages/canvas-media/src/ClosedCaptionCreator/ClosedCaptionCreatorRow.js +++ b/packages/canvas-media/src/ClosedCaptionCreator/ClosedCaptionCreatorRow.js @@ -17,7 +17,6 @@ */ import React, {Component} from 'react' import {arrayOf, func, objectOf, shape, string, element, oneOfType} from 'prop-types' -import formatMessage from 'format-message' import {StyleSheet, css} from 'aphrodite' import {Alert} from '@instructure/ui-alerts' import {Button, IconButton} from '@instructure/ui-buttons' @@ -26,6 +25,7 @@ import {IconTrashLine} from '@instructure/ui-icons' import {ScreenReaderContent} from '@instructure/ui-a11y-content' import {Text} from '@instructure/ui-text' import {View} from '@instructure/ui-view' +import formatMessage from '../format-message' import CanvasSelect from '../shared/CanvasSelect' import {CC_FILE_MAX_BYTES} from '../shared/constants' diff --git a/packages/canvas-media/src/ComputerPanel.js b/packages/canvas-media/src/ComputerPanel.js index 776008ec8ee..04ce463f4bc 100644 --- a/packages/canvas-media/src/ComputerPanel.js +++ b/packages/canvas-media/src/ComputerPanel.js @@ -28,7 +28,6 @@ import { string, element, } from 'prop-types' -import formatMessage from 'format-message' import {Billboard} from '@instructure/ui-billboard' import {Button} from '@instructure/ui-buttons' @@ -42,6 +41,7 @@ import {Text} from '@instructure/ui-text' import {px} from '@instructure/ui-utils' import {MediaPlayer} from '@instructure/ui-media-player' import {TextInput} from '@instructure/ui-text-input' +import formatMessage from './format-message' import LoadingIndicator from './shared/LoadingIndicator' import RocketSVG from './RocketSVG'