display state strings from backend, but with user friendly wording

This commit is contained in:
Tom (plebeius.eth)
2025-02-20 13:29:24 +01:00
parent 7172be4960
commit 684ca25a65
42 changed files with 139 additions and 85 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ const useIsSubplebbitOffline = (subplebbit: Subplebbit) => {
const offlineIconClass = isLoading ? 'yellowOfflineIcon' : isOffline ? 'redOfflineIcon' : '';
const offlineTitle = isLoading
? t('loading_subplebbit')
? t('loading_board')
: updatedAt
? isOffline && t('posts_last_synced_info', { time: getFormattedTimeAgo(updatedAt), interpolation: { escapeValue: false } })
: t('subplebbit_offline_info');