fix(lang): fix overwritten/shared string (#1212)
This commit is contained in:
@@ -843,7 +843,7 @@
|
|||||||
"i18n.tvshows": "Series",
|
"i18n.tvshows": "Series",
|
||||||
"i18n.unavailable": "Unavailable",
|
"i18n.unavailable": "Unavailable",
|
||||||
"i18n.usersettings": "User Settings",
|
"i18n.usersettings": "User Settings",
|
||||||
"pages.errormessagewithcode": "404 - {error}",
|
"pages.errormessagewithcode": "{statusCode} - {error}",
|
||||||
"pages.internalservererror": "Internal Server Error",
|
"pages.internalservererror": "Internal Server Error",
|
||||||
"pages.oops": "Oops",
|
"pages.oops": "Oops",
|
||||||
"pages.pagenotfound": "Page Not Found",
|
"pages.pagenotfound": "Page Not Found",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||||||
import PageTitle from '../components/Common/PageTitle';
|
import PageTitle from '../components/Common/PageTitle';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
errormessagewithcode: '404 - {error}',
|
errormessagewithcode: '{statusCode} - {error}',
|
||||||
pagenotfound: 'Page Not Found',
|
pagenotfound: 'Page Not Found',
|
||||||
returnHome: 'Return Home',
|
returnHome: 'Return Home',
|
||||||
});
|
});
|
||||||
@@ -17,6 +17,7 @@ const Custom404: React.FC = () => {
|
|||||||
<PageTitle title={intl.formatMessage(messages.pagenotfound)} />
|
<PageTitle title={intl.formatMessage(messages.pagenotfound)} />
|
||||||
<div className="text-4xl">
|
<div className="text-4xl">
|
||||||
{intl.formatMessage(messages.errormessagewithcode, {
|
{intl.formatMessage(messages.errormessagewithcode, {
|
||||||
|
statusCode: 404,
|
||||||
error: intl.formatMessage(messages.pagenotfound),
|
error: intl.formatMessage(messages.pagenotfound),
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user