diff --git a/docs/developer/contribute/copy.md b/docs/developer/contribute/copy.md index 407ecb21d..c2acba76d 100644 --- a/docs/developer/contribute/copy.md +++ b/docs/developer/contribute/copy.md @@ -47,8 +47,8 @@ const labels = computed(() => ({ :::{tab-item} Template ```html -

{{ $t('components.About.header.funkwhale') }}

- +

{{ t('components.About.header.funkwhale') }}

+ ``` ::: @@ -84,11 +84,11 @@ Some strings change depending on whether they are plural or not. You can create v-if="object.artist?.content_category === 'podcast'" class="meta ellipsis" > - {{ $t('components.audio.ChannelCard.meta.episodes', {episode_count: + {{ t('components.audio.ChannelCard.meta.episodes', {episode_count: object.artist.tracks_count}) }} - {{ $t('components.audio.ChannelCard.meta.tracks', {tracks_count: + {{ t('components.audio.ChannelCard.meta.tracks', {tracks_count: object.artist?.tracks_count}) }} import('~/components/channels/UploadModal.vue')) const PlaylistModal = defineAsyncComponent(() => import('~/components/playlists/PlaylistModal.vue')) const FilterModal = defineAsyncComponent(() => import('~/components/moderation/FilterModal.vue')) @@ -85,7 +89,7 @@ const showSetInstanceModal = ref(false) diff --git a/front/src/components/About.vue b/front/src/components/About.vue index a40cf6da2..216099ecf 100644 --- a/front/src/components/About.vue +++ b/front/src/components/About.vue @@ -67,10 +67,10 @@ const headerStyle = computed(() => {

- {{ $t('components.About.header.funkwhale') }} + {{ t('components.About.header.funkwhale') }}

- {{ $t('components.About.description.funkwhale') }} + {{ t('components.About.description.funkwhale') }}

@@ -84,14 +84,14 @@ const headerStyle = computed(() => { class="signup-form content" >

- {{ $t('components.About.header.signup') }} + {{ t('components.About.header.signup') }}

- {{ $t('components.About.help.closedRegistrations') }} + {{ t('components.About.help.closedRegistrations') }}

{ rel="noopener" href="https://funkwhale.audio/#get-started" > - {{ $t('components.About.link.findOtherPod') }} + {{ t('components.About.link.findOtherPod') }}  
@@ -118,13 +118,13 @@ const headerStyle = computed(() => { class="signup-form content" >

- {{ $t('components.About.header.signup') }} + {{ t('components.About.header.signup') }}
- {{ $t('components.About.message.loggedIn') }} + {{ t('components.About.message.loggedIn') }}

- {{ $t('components.About.message.greeting', {username: $store.state.auth.username}) }} + {{ t('components.About.message.greeting', {username: $store.state.auth.username}) }}

@@ -145,7 +145,7 @@ const headerStyle = computed(() => { id="description" class="ui header" > - {{ $t('components.About.header.aboutPod') }} + {{ t('components.About.header.aboutPod') }}
{ {{ shortDescription }}

- {{ $t('components.About.placeholder.noDescription') }} + {{ t('components.About.placeholder.noDescription') }}

@@ -420,7 +420,7 @@ const headerStyle = computed(() => { class="ui left floated basic secondary button" > - {{ $t('components.AboutPod.link.introduction') }} + {{ t('components.AboutPod.link.introduction') }} diff --git a/front/src/components/Home.vue b/front/src/components/Home.vue index ec7bfe705..e5e5efec3 100644 --- a/front/src/components/Home.vue +++ b/front/src/components/Home.vue @@ -73,7 +73,7 @@ whenever(() => store.state.auth.authenticated, () => {

- {{ $t('components.Home.header.welcome', {podName: podName}) }} + {{ t('components.Home.header.welcome', {podName: podName}) }}
store.state.auth.authenticated, () => {

- {{ $t('components.Home.header.about') }} + {{ t('components.Home.header.about') }}

store.state.auth.authenticated, () => {

- {{ $t('components.Home.placeholder.noDescription') }} + {{ t('components.Home.placeholder.noDescription') }}

@@ -307,7 +310,7 @@ if (!isWebGLSupported) { class="discrete link album" :to="{name: 'library.albums.detail', params: {id: currentTrack.albumId }}" > - {{ currentTrack.albumTitle ?? $t('components.Queue.meta.unknownAlbum') }} + {{ currentTrack.albumTitle ?? t('components.Queue.meta.unknownAlbum') }}
@@ -318,14 +321,14 @@ if (!isWebGLSupported) { class="ui small warning message" >

- {{ $t('components.Queue.header.failure') }} + {{ t('components.Queue.header.failure') }}

- {{ $t('components.Queue.message.automaticPlay') }} + {{ t('components.Queue.message.automaticPlay') }}

- {{ $t('components.Queue.warning.connectivity') }} + {{ t('components.Queue.warning.connectivity') }}

- {{ $t('components.Queue.header.noSources') }} + {{ t('components.Queue.header.noSources') }}

- {{ $t('components.Queue.message.automaticPlay') }} + {{ t('components.Queue.message.automaticPlay') }}

@@ -401,7 +404,7 @@ if (!isWebGLSupported) {
diff --git a/front/src/components/auth/ApplicationEdit.vue b/front/src/components/auth/ApplicationEdit.vue index 4c2303042..c58852768 100644 --- a/front/src/components/auth/ApplicationEdit.vue +++ b/front/src/components/auth/ApplicationEdit.vue @@ -72,17 +72,17 @@ store.state.auth.applicationSecret = undefined
diff --git a/front/src/components/auth/Logout.vue b/front/src/components/auth/Logout.vue index 9bb2cdddd..6f9fade54 100644 --- a/front/src/components/auth/Logout.vue +++ b/front/src/components/auth/Logout.vue @@ -1,8 +1,11 @@ -