Offline banner i18n formatting (#3997)

* Fix "Last live ago" string formatting with i18n interpolation

* Change some base translation jsons to use i18n interpolation

* Linting fix
This commit is contained in:
mahmed2000 2024-11-05 15:58:43 +00:00 committed by GitHub
parent d03d6e79aa
commit 3e4a09124a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 39 additions and 39 deletions

View file

@ -102,7 +102,7 @@ export const OfflineBanner: FC<OfflineBannerProps> = ({
{lastLive && (
<div className={styles.lastLiveDate}>
<ClockCircleOutlined className={styles.clockIcon} />
{`${(t('Last live ago'), { timeAgo: formatDistanceToNow(new Date(lastLive)) })}`}
{`${t('Last live ago', { timeAgo: formatDistanceToNow(new Date(lastLive)) })}`}
</div>
)}
</div>

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}

View file

@ -13,8 +13,8 @@
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"the next time goes live": "the next time {{streamer}} goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
"Last live ago": "Last live {{timeAgo}} ago"
}