Add page-specific titles for each feed type

This commit is contained in:
Jason Henriquez 2023-11-25 10:02:06 -06:00
parent 1831912817
commit c55eebe3da
10 changed files with 16 additions and 9 deletions

View File

@ -9,12 +9,12 @@
v-if="lastRefreshTimestamp"
class="lastRefreshTimestamp"
>
{{ $t('Subscriptions.Feed last updated', { date: lastRefreshTimestamp }) }}
{{ $t('Feed.Feed Last Updated', { feedName: title, date: lastRefreshTimestamp }) }}
</p>
<ft-icon-button
:icon="['fas', 'sync']"
class="refreshButton"
:title="title"
:title="$t('Feed.Refresh Feed', { subscriptionName: title })"
:size="12"
theme="primary"
@click="$emit('click')"

View File

@ -7,6 +7,7 @@
:is-community="true"
:initial-data-limit="20"
:last-refresh-timestamp="lastCommunityRefreshTimestamp"
:title="$t('Global.Community')"
@refresh="loadPostsForSubscriptionsFromRemote"
/>
</template>

View File

@ -5,6 +5,7 @@
:error-channels="errorChannels"
:attempted-fetch="attemptedFetch"
:last-refresh-timestamp="lastLiveRefreshTimestamp"
:title="$t('Global.Live')"
@refresh="loadVideosForSubscriptionsFromRemote"
/>
</template>

View File

@ -5,6 +5,7 @@
:error-channels="errorChannels"
:attempted-fetch="attemptedFetch"
:last-refresh-timestamp="lastShortRefreshTimestamp"
:title="$t('Global.Shorts')"
@refresh="loadVideosForSubscriptionsFromRemote"
/>
</template>

View File

@ -47,6 +47,10 @@ export default defineComponent({
lastRefreshTimestamp: {
type: String,
required: true
},
title: {
type: String,
required: true
}
},
data: function () {

View File

@ -58,7 +58,7 @@
<ft-refresh-widget
v-if="!isLoading"
:last-refresh-timestamp="lastRefreshTimestamp"
:title="$t('Subscriptions.Refresh Subscriptions')"
:title="title"
@click="$emit('refresh')"
/>
</div>

View File

@ -5,6 +5,7 @@
:error-channels="errorChannels"
:last-refresh-timestamp="lastVideoRefreshTimestamp"
:attempted-fetch="attemptedFetch"
:title="$t('Global.Videos')"
@refresh="loadVideosForSubscriptionsFromRemote"
/>
</template>

View File

@ -16,7 +16,7 @@
<ft-refresh-widget
v-if="!isLoading"
:last-refresh-timestamp="lastPopularRefreshTimestamp"
:title="$t('Refresh Most Popular')"
:title="$t('Most Popular')"
@click="fetchPopularInfo"
/>
</div>

View File

@ -88,7 +88,7 @@
<ft-refresh-widget
v-if="!isLoading"
:last-refresh-timestamp="lastTrendingRefreshTimestamp"
:title="$t('Refresh Trending')"
:title="$t('Trending.Trending')"
@click="getTrendingInfo(true)"
/>
</div>

View File

@ -106,8 +106,6 @@ Subscriptions:
Empty Channels: Your subscribed channels currently does not have any videos.
'Getting Subscriptions. Please wait.': Getting Subscriptions. Please wait.
Empty Posts: Your subscribed channels currently do not have any posts.
Feed last updated: 'Feed last updated: {date}'
Refresh Subscriptions: Refresh Subscriptions
Load More Videos: Load More Videos
Load More Posts: Load More Posts
Subscriptions Tabs: Subscriptions Tabs
@ -130,8 +128,9 @@ Trending:
Movies: Movies
Trending Tabs: Trending Tabs
Most Popular: Most Popular
Refresh Most Popular: Refresh Most Popular
Refresh Trending: Refresh Trending
Feed:
Feed Last Updated: '{feedName} feed last updated: {date}'
Refresh Feed: Refresh {subscriptionName}
Playlists: Playlists
User Playlists:
Your Playlists: Your Playlists