Translate player tab titles.

master
Icedream 2021-01-03 20:59:58 +01:00
parent 31a9cac76b
commit ec684c2417
3 changed files with 35 additions and 11 deletions

View File

@ -52,6 +52,14 @@
"defaultMessage": "Geschnitten von {url}",
"description": "Text below video that describes where a video was cut from"
},
"VideoPlayerPage.tab.mirrorPlayer": {
"defaultMessage": "Mirror-Player",
"description": "Title for mirror player tab"
},
"VideoPlayerPage.tab.twitchPlayer": {
"defaultMessage": "Twitch-Player",
"description": "Title for Twitch player tab"
},
"VideoPlayerPage.watchOnTwitch": {
"defaultMessage": "Auf Twitch anschauen",
"description": "Button below video that links to the exact position in the archived stream to watch it there."

View File

@ -23,13 +23,7 @@
"defaultMessage": "Instant access to your favorite VODs of Games Done Quick!"
},
"Home.introText2": {
"defaultMessage": "This website collects Icedream's clips for all the broadcasted Games Done Quick runs."
},
"LocaleSwitcher.language.de": {
"defaultMessage": "German"
},
"LocaleSwitcher.language.en": {
"defaultMessage": "English"
"defaultMessage": "This website collects all the broadcasted runs and allows streaming and downloading them."
},
"LocaleSwitcher.screenReaderText": {
"defaultMessage": "Switch language",
@ -45,9 +39,17 @@
"defaultMessage": "Type something to search here…"
},
"VideoListPage.updatedLastAgo": {
"defaultMessage": "Last updated {time}",
"defaultMessage": "Updated last {time}",
"description": "Text below the video list on the video list page that says in relative time when the list was last updated"
},
"VideoPlayerPage.tab.mirrorPlayer": {
"defaultMessage": "Mirror player",
"description": "Title for mirror player tab"
},
"VideoPlayerPage.tab.twitchPlayer": {
"defaultMessage": "Twitch player",
"description": "Title for Twitch player tab"
},
"VideoPlayerPage.watchOnTwitch": {
"defaultMessage": "Watch on Twitch",
"description": "Button below video that links to the exact position in the archived stream to watch it there."

View File

@ -267,7 +267,14 @@ export default function VideoPlayerPage({
defaultActiveKey="twitch-player"
unmountOnExit={true}
>
<Tab eventKey="twitch-player" title="Twitch player">
<Tab
eventKey="twitch-player"
title={intl.formatMessage({
id: 'VideoPlayerPage.tab.twitchPlayer',
description: 'Title for Twitch player tab',
defaultMessage: 'Twitch player',
})}
>
<ResponsiveEmbed aspectRatio="16by9">
<iframe
src={twitchEmbedURL.toString()}
@ -276,7 +283,14 @@ export default function VideoPlayerPage({
</iframe>
</ResponsiveEmbed>
</Tab>
<Tab eventKey="direct-player" title="Mirror player">
<Tab
eventKey="mirror-player"
title={intl.formatMessage({
id: 'VideoPlayerPage.tab.mirrorPlayer',
description: 'Title for mirror player tab',
defaultMessage: 'Mirror player',
})}
>
<VideoPlayer
ref={playerRef}
autoplay
@ -349,6 +363,6 @@ export default function VideoPlayerPage({
</CopyField>
</Col>
</Row>
</div>
</div >
);
}