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": {
"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": {
"defaultMessage": "Geschnitten von {url}",
"description": "Text below video that describes where a video was cut from"

View File

@ -40,6 +40,10 @@
"VideoList.Search.Placeholder": {
"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": {
"defaultMessage": "Watch on Twitch",
"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
? (
<footer className="pt-4 my-md-5 pt-md-5 border-top">
Last updated
{' '}
<RelativeTime>{lastUpdatedDate}</RelativeTime>
<FormattedMessage
id="VideoListPage.updatedLastAgo"
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>
)
: ''