Translate "last updated" time.

master
Icedream 2021-01-03 18:43:25 +01:00
parent ddca92e422
commit f7b67355c4
3 changed files with 20 additions and 3 deletions

View File

@ -40,6 +40,10 @@
"VideoList.Search.Placeholder": { "VideoList.Search.Placeholder": {
"defaultMessage": "Gib hier etwas zum Suchen ein…" "defaultMessage": "Gib hier etwas zum Suchen ein…"
}, },
"VideoListPage.updatedLastAgo": {
"defaultMessage": "Zuletzt aktualisiert {time}",
"description": "Text below the video list on the video list page that says in relative time when the list was last updated"
},
"VideoPlayerPage.cutFrom": { "VideoPlayerPage.cutFrom": {
"defaultMessage": "Geschnitten von {url}", "defaultMessage": "Geschnitten von {url}",
"description": "Text below video that describes where a video was cut from" "description": "Text below video that describes where a video was cut from"

View File

@ -40,6 +40,10 @@
"VideoList.Search.Placeholder": { "VideoList.Search.Placeholder": {
"defaultMessage": "Type something to search here…" "defaultMessage": "Type something to search here…"
}, },
"VideoListPage.updatedLastAgo": {
"defaultMessage": "Last updated {time}",
"description": "Text below the video list on the video list page that says in relative time when the list was last updated"
},
"VideoPlayerPage.watchOnTwitch": { "VideoPlayerPage.watchOnTwitch": {
"defaultMessage": "Watch on Twitch", "defaultMessage": "Watch on Twitch",
"description": "Button below video that links to the exact position in the archived stream to watch it there." "description": "Button below video that links to the exact position in the archived stream to watch it there."

View File

@ -129,9 +129,18 @@ export default function VideoListPage({
lastUpdatedDate lastUpdatedDate
? ( ? (
<footer className="pt-4 my-md-5 pt-md-5 border-top"> <footer className="pt-4 my-md-5 pt-md-5 border-top">
Last updated <FormattedMessage
{' '} id="VideoListPage.updatedLastAgo"
<RelativeTime>{lastUpdatedDate}</RelativeTime> description="Text below the video list on the video list page that says in relative time when the list was last updated"
defaultMessage="Updated last {time}"
values={{
time: (
<RelativeTime>
{lastUpdatedDate}
</RelativeTime>
),
}}
/>
</footer> </footer>
) )
: '' : ''