Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(preview): Update preview error messages #3562

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion i18n/en-US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ be.pointAnnotation = Point annotation mode
# Label for preview action.
be.preview = Preview
# Error message when Preview fails due to the files call.
be.previewError = We’re sorry, the preview didn’t load. Please refresh the page.
be.previewError = This preview didn’t load. Please try to open or download the file to view.
# Error message when Preview fails due to the files call which is blocked by an access policy.
be.previewErrorBlockedByPolicy = Your access to this content is restricted due to a security policy.
# Message when new preview is available.
Expand Down
2 changes: 1 addition & 1 deletion src/elements/common/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const messages = defineMessages({
previewError: {
id: 'be.previewError',
description: 'Error message when Preview fails due to the files call.',
defaultMessage: 'We’re sorry, the preview didn’t load. Please refresh the page.',
defaultMessage: 'This preview didn’t load. Please try to open or download the file to view.',
},
previewErrorBlockedByPolicy: {
id: 'be.previewErrorBlockedByPolicy',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`elements/content-preview/PreviewError render() should render correctly
className="bcpr-PreviewError-message"
>
<FormattedMessage
defaultMessage="We’re sorry, the preview didn’t load. Please refresh the page."
defaultMessage="This preview didn’t load. Please try to open or download the file to view."
id="be.previewError"
/>
</div>
Expand Down
Loading