mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-26 23:47:25 +00:00
Translation component improvements.
This commit is contained in:
parent
72a0f0d376
commit
bf1fc5e84d
@ -112,7 +112,7 @@ b {
|
||||
}
|
||||
|
||||
.video-grid {
|
||||
@apply grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 col-auto <md:gap-x-2.5 md:gap-x-1vw gap-y-1.5 mx-3;
|
||||
@apply grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 col-auto <md:gap-x-2.5 md:gap-x-1vw gap-y-1.5;
|
||||
}
|
||||
|
||||
.btn {
|
||||
|
@ -16,12 +16,12 @@
|
||||
|
||||
<hr />
|
||||
|
||||
<div v-if="results && results.corrected" style="height: 7vh">
|
||||
<span v-text="$t('search.did_you_mean')" />
|
||||
|
||||
<router-link :to="{ name: 'SearchResults', query: { search_query: results.suggestion } }">
|
||||
<em v-text="results.suggestion" />
|
||||
</router-link>
|
||||
<div v-if="results && results.corrected">
|
||||
<i18n-t keypath="search.did_you_mean" tag="div" class="text-lg">
|
||||
<router-link :to="{ name: 'SearchResults', query: { search_query: results.suggestion } }">
|
||||
<em v-text="results.suggestion" />
|
||||
</router-link>
|
||||
</i18n-t>
|
||||
</div>
|
||||
|
||||
<div v-if="results" class="video-grid">
|
||||
|
@ -24,7 +24,7 @@
|
||||
<div class="font-bold mt-2 text-2xl break-words" v-text="video.title" />
|
||||
|
||||
<div class="flex mb-1.5">
|
||||
<span v-text="`${addCommas(video.views)} views`" />
|
||||
<span v-t="{ path: 'video.views', args: { views: addCommas(video.views) } }" />
|
||||
<span class="ml-2" v-text="uploadDate" />
|
||||
|
||||
<div class="flex items-center relative ml-auto children:ml-2">
|
||||
@ -44,11 +44,12 @@
|
||||
</div>
|
||||
</template>
|
||||
<a :href="`https://youtu.be/${getVideoId()}`" class="btn">
|
||||
<strong v-text="$t('player.watch_on')" />
|
||||
<font-awesome-icon class="ml-1.5" :icon="['fab', 'youtube']" />
|
||||
<i18n-t keypath="player.watch_on" tag="strong">
|
||||
<font-awesome-icon class="mx-1.5" :icon="['fab', 'youtube']" />
|
||||
</i18n-t>
|
||||
</a>
|
||||
<a v-if="video.lbryId" :href="'https://odysee.com/' + video.lbryId" class="btn">
|
||||
<strong v-text="`${$t('player.watch_on')} LBRY`" />
|
||||
<i18n-t keypath="player.watch_on" tag="strong">LBRY</i18n-t>
|
||||
</a>
|
||||
<router-link
|
||||
:to="toggleListenUrl"
|
||||
|
@ -9,7 +9,7 @@
|
||||
"subscriptions": "Subscriptions"
|
||||
},
|
||||
"player": {
|
||||
"watch_on": "Watch on"
|
||||
"watch_on": "Watch on {0}"
|
||||
},
|
||||
"actions": {
|
||||
"subscribe": "Subscribe",
|
||||
@ -87,13 +87,13 @@
|
||||
},
|
||||
"video": {
|
||||
"videos": "Videos",
|
||||
"views": "views",
|
||||
"views": "{views} views",
|
||||
"watched": "Watched",
|
||||
"sponsor_segments": "Sponsors Segments",
|
||||
"ratings_disabled": "Ratings Disabled",
|
||||
"chapters": "Chapters"
|
||||
},
|
||||
"search": {
|
||||
"did_you_mean": "Did you mean: "
|
||||
"did_you_mean": "Did you mean: {0}?"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user