mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(frontend): add i18n for request text on titlecard
This commit is contained in:
@@ -8,6 +8,7 @@ import { MediaStatus } from '../../../server/constants/media';
|
|||||||
import RequestModal from '../RequestModal';
|
import RequestModal from '../RequestModal';
|
||||||
import { defineMessages, useIntl } from 'react-intl';
|
import { defineMessages, useIntl } from 'react-intl';
|
||||||
import { useIsTouch } from '../../hooks/useIsTouch';
|
import { useIsTouch } from '../../hooks/useIsTouch';
|
||||||
|
import globalMessages from '../../i18n/globalMessages';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
movie: 'Movie',
|
movie: 'Movie',
|
||||||
@@ -256,7 +257,9 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
|||||||
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
<span className="text-xs">Request</span>
|
<span className="text-xs">
|
||||||
|
{intl.formatMessage(globalMessages.request)}
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -6,6 +6,7 @@ const globalMessages = defineMessages({
|
|||||||
processing: 'Processing',
|
processing: 'Processing',
|
||||||
unavailable: 'Unavailable',
|
unavailable: 'Unavailable',
|
||||||
requested: 'Requested',
|
requested: 'Requested',
|
||||||
|
request: 'Request',
|
||||||
failed: 'Failed',
|
failed: 'Failed',
|
||||||
pending: 'Pending',
|
pending: 'Pending',
|
||||||
declined: 'Declined',
|
declined: 'Declined',
|
||||||
|
@@ -421,6 +421,7 @@
|
|||||||
"i18n.partiallyavailable": "Partially Available",
|
"i18n.partiallyavailable": "Partially Available",
|
||||||
"i18n.pending": "Pending",
|
"i18n.pending": "Pending",
|
||||||
"i18n.processing": "Processing…",
|
"i18n.processing": "Processing…",
|
||||||
|
"i18n.request": "Request",
|
||||||
"i18n.requested": "Requested",
|
"i18n.requested": "Requested",
|
||||||
"i18n.retry": "Retry",
|
"i18n.retry": "Retry",
|
||||||
"i18n.tvshows": "Series",
|
"i18n.tvshows": "Series",
|
||||||
|
Reference in New Issue
Block a user