Fixed: Missing Translates

This commit is contained in:
Bakerboy448 2023-04-29 16:02:00 -05:00 committed by Bogdan
commit 89972b8b66
30 changed files with 183 additions and 133 deletions

View file

@ -6,6 +6,7 @@ import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import translate from 'Utilities/String/translate';
import styles from './ModalError.css';
function ModalError(props) {
@ -25,7 +26,7 @@ function ModalError(props) {
messageClassName={styles.message}
detailsClassName={styles.details}
{...otherProps}
message='There was an error loading this item'
message={translate('ThereWasAnErrorLoadingThisItem')}
/>
</ModalBody>

View file

@ -1,5 +1,6 @@
import React from 'react';
import ErrorBoundaryError from 'Components/Error/ErrorBoundaryError';
import translate from 'Utilities/String/translate';
import PageContentBody from './PageContentBody';
import styles from './PageContentError.css';
@ -9,7 +10,7 @@ function PageContentError(props) {
<PageContentBody>
<ErrorBoundaryError
{...props}
message='There was an error loading this page'
message={translate('ThereWasAnErrorLoadingThisPage')}
/>
</PageContentBody>
</div>