[web] Add pluralisation to the translations

Texts are now pluralized where necessary.
This commit is contained in:
Alain Nussbaumer
2023-07-01 21:53:52 +02:00
parent 91c5a4fa67
commit 83e3d43a21
5 changed files with 132 additions and 133 deletions

View File

@@ -52,8 +52,8 @@
class="button is-light is-small is-rounded"
@click="open_search_tracks"
v-text="
$t('page.search.show-tracks', {
count: tracks.total.toLocaleString($i18n.locale)
$t('page.search.show-tracks', tracks.total, {
count: $filters.number(tracks.total)
})
"
/>
@@ -81,8 +81,8 @@
class="button is-light is-small is-rounded"
@click="open_search_artists"
v-text="
$t('page.search.show-artists', {
count: artists.total.toLocaleString($i18n.locale)
$t('page.search.show-artists', artists.total, {
count: $filters.number(artists.total)
})
"
/>
@@ -110,8 +110,8 @@
class="button is-light is-small is-rounded"
@click="open_search_albums"
v-text="
$t('page.search.show-albums', {
count: albums.total.toLocaleString($i18n.locale)
$t('page.search.show-albums', albums.total, {
count: $filters.number(albums.total)
})
"
/>
@@ -139,8 +139,8 @@
class="button is-light is-small is-rounded"
@click="open_search_composers"
v-text="
$t('page.search.show-composers', {
count: composers.total.toLocaleString($i18n.locale)
$t('page.search.show-composers', composers.total, {
count: $filters.number(composers.total)
})
"
/>
@@ -168,8 +168,8 @@
class="button is-light is-small is-rounded"
@click="open_search_playlists"
v-text="
$t('page.search.show-playlists', {
count: playlists.total.toLocaleString($i18n.locale)
$t('page.search.show-playlists', playlists.total, {
count: $filters.number(playlists.total)
})
"
/>
@@ -197,8 +197,8 @@
class="button is-light is-small is-rounded"
@click="open_search_podcasts"
v-text="
$t('page.search.show-podcasts', {
count: podcasts.total.toLocaleString($i18n.locale)
$t('page.search.show-podcasts', podcasts.total, {
count: $filters.number(podcasts.total)
})
"
/>
@@ -227,8 +227,8 @@
class="button is-light is-small is-rounded"
@click="open_search_audiobooks"
v-text="
$t('page.search.show-audiobooks', {
count: audiobooks.total.toLocaleString($i18n.locale)
$t('page.search.show-audiobooks', audiobooks.total, {
count: $filters.number(audiobooks.total)
})
"
/>

View File

@@ -16,7 +16,6 @@
:placeholder="$t('page.spotify.search.placeholder')"
autocomplete="off"
/>
<mdicon class="icon is-left" name="magnify" size="16" />
</p>
</div>
@@ -78,8 +77,8 @@
class="button is-light is-small is-rounded"
@click="open_search_tracks"
v-text="
$t('page.spotify.search.show-all-tracks', {
count: tracks.total.toLocaleString($i18n.locale)
$t('page.spotify.search.show-all-tracks', tracks.total, {
count: $filters.number(tracks.total)
})
"
/>
@@ -132,8 +131,8 @@
class="button is-light is-small is-rounded"
@click="open_search_artists"
v-text="
$t('page.spotify.search.show-all-artists', {
count: artists.total.toLocaleString($i18n.locale)
$t('page.spotify.search.show-all-artists', artists.total, {
count: $filters.number(artists.total)
})
"
/>
@@ -197,8 +196,8 @@
class="button is-light is-small is-rounded"
@click="open_search_albums"
v-text="
$t('page.spotify.search.show-all-albums', {
count: albums.total.toLocaleString($i18n.locale)
$t('page.spotify.search.show-all-albums', albums.total, {
count: $filters.number(albums.total)
})
"
/>
@@ -251,8 +250,8 @@
class="button is-light is-small is-rounded"
@click="open_search_playlists"
v-text="
$t('page.spotify.search.show-all-playlists', {
count: playlists.total.toLocaleString($i18n.locale)
$t('page.spotify.search.show-all-playlists', playlists.total, {
count: $filters.number(playlists.total)
})
"
/>