- {{ $t('components.AboutPod.feature.version') }}
+ {{ t('components.AboutPod.feature.version') }}
|
{
class="right aligned"
>
- {{ $t('components.AboutPod.notApplicable') }}
+ {{ t('components.AboutPod.notApplicable') }}
|
- {{ $t('components.AboutPod.feature.federation') }}
+ {{ t('components.AboutPod.feature.federation') }}
|
{
>
- {{ $t('components.AboutPod.feature.status.enabled') }}
+ {{ t('components.AboutPod.feature.status.enabled') }}
|
{
>
- {{ $t('components.AboutPod.feature.status.disabled') }}
+ {{ t('components.AboutPod.feature.status.disabled') }}
|
- {{ $t('components.AboutPod.feature.allowList') }}
+ {{ t('components.AboutPod.feature.allowList') }}
|
{
>
- {{ $t('components.AboutPod.feature.status.enabled') }}
+ {{ t('components.AboutPod.feature.status.enabled') }}
|
{
>
- {{ $t('components.AboutPod.feature.status.disabled') }}
+ {{ t('components.AboutPod.feature.status.disabled') }}
|
@@ -257,7 +257,7 @@ const headerStyle = computed(() => {
- {{ $t('components.AboutPod.feature.anonymousAccess') }}
+ {{ t('components.AboutPod.feature.anonymousAccess') }}
|
{
>
- {{ $t('components.AboutPod.feature.status.enabled') }}
+ {{ t('components.AboutPod.feature.status.enabled') }}
|
{
>
- {{ $t('components.AboutPod.feature.status.disabled') }}
+ {{ t('components.AboutPod.feature.status.disabled') }}
|
- {{ $t('components.AboutPod.feature.registrations') }}
+ {{ t('components.AboutPod.feature.registrations') }}
|
{
>
- {{ $t('components.AboutPod.feature.status.open') }}
+ {{ t('components.AboutPod.feature.status.open') }}
|
{
>
- {{ $t('components.AboutPod.feature.status.closed') }}
+ {{ t('components.AboutPod.feature.status.closed') }}
|
- {{ $t('components.AboutPod.feature.quota') }}
+ {{ t('components.AboutPod.feature.quota') }}
|
{
class="right aligned"
>
- {{ $t('components.AboutPod.notApplicable') }}
+ {{ t('components.AboutPod.notApplicable') }}
|
@@ -332,7 +332,7 @@ const headerStyle = computed(() => {
id="statistics"
class="header"
>
- {{ $t('components.AboutPod.header.statistics') }}
+ {{ t('components.AboutPod.header.statistics') }}
{
{{ stats.hours.toLocaleString($store.state.ui.momentLocale) }}
- {{ $t('components.AboutPod.stat.hoursOfMusic', stats.hours) }}
+ {{ t('components.AboutPod.stat.hoursOfMusic', stats.hours) }}
{
{{ stats.artists.toLocaleString($store.state.ui.momentLocale) }}
- {{ $t('components.AboutPod.stat.artistsCount', stats.artists) }}
+ {{ t('components.AboutPod.stat.artistsCount', stats.artists) }}
{
{{ stats.albums.toLocaleString($store.state.ui.momentLocale) }}
- {{ $t('components.AboutPod.stat.albumsCount', stats.albums) }}
+ {{ t('components.AboutPod.stat.albumsCount', stats.albums) }}
{
{{ stats.tracks.toLocaleString($store.state.ui.momentLocale) }}
- {{ $t('components.AboutPod.stat.tracksCount', stats.tracks) }}
+ {{ t('components.AboutPod.stat.tracksCount', stats.tracks) }}
{
{{ stats.users.toLocaleString($store.state.ui.momentLocale) }}
- {{ $t('components.AboutPod.stat.activeUsers', stats.users) }}
+ {{ t('components.AboutPod.stat.activeUsers', stats.users) }}
{
{{ stats.listenings.toLocaleString($store.state.ui.momentLocale) }}
- {{ $t('components.AboutPod.stat.listeningsCount', stats.listenings) }}
+ {{ t('components.AboutPod.stat.listeningsCount', stats.listenings) }}
@@ -403,13 +403,13 @@ const headerStyle = computed(() => {
id="contact"
class="ui header"
>
- {{ $t('components.AboutPod.header.contact') }}
+ {{ t('components.AboutPod.header.contact') }}
- {{ $t('components.AboutPod.message.contact', { contactEmail }) }}
+ {{ t('components.AboutPod.message.contact', { contactEmail }) }}
@@ -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, () => {
- {{ currentTrack.albumTitle ?? $t('components.Queue.meta.unknownAlbum') }}
+ {{ currentTrack.albumTitle ?? t('components.Queue.meta.unknownAlbum') }}
@@ -296,7 +299,7 @@ if (!isWebGLSupported) {
:to="{name: 'library.artists.detail', params: {id: ac.artist.id }}"
@click.stop.prevent=""
>
- {{ ac.credit ?? $t('components.Queue.meta.unknownArtist') }}
+ {{ ac.credit ?? t('components.Queue.meta.unknownArtist') }}
{{ ac.joinphrase }}
@@ -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.message.automaticPlay') }}
+ {{ t('components.Queue.message.automaticPlay') }}
- {{ $t('components.Queue.warning.connectivity') }}
+ {{ t('components.Queue.warning.connectivity') }}
- {{ $t('components.Queue.message.automaticPlay') }}
+ {{ t('components.Queue.message.automaticPlay') }}
@@ -401,7 +404,7 @@ if (!isWebGLSupported) {
diff --git a/front/src/components/admin/SignupFormBuilder.vue b/front/src/components/admin/SignupFormBuilder.vue
index febddd3ee..ab953a0fc 100644
--- a/front/src/components/admin/SignupFormBuilder.vue
+++ b/front/src/components/admin/SignupFormBuilder.vue
@@ -69,13 +69,13 @@ const move = (idx: number, increment: number) => {
:class="[{active: !isPreviewing}, 'item']"
@click.stop.prevent="isPreviewing = false"
>
- {{ $t('components.admin.SignupFormBuilder.button.edit') }}
+ {{ t('components.admin.SignupFormBuilder.button.edit') }}
- {{ $t('components.admin.SignupFormBuilder.button.preview') }}
+ {{ t('components.admin.SignupFormBuilder.button.preview') }}
{
>
- {{ $t('components.admin.SignupFormBuilder.help.helpText') }}
+ {{ t('components.admin.SignupFormBuilder.help.helpText') }}
{
- {{ $t('components.admin.SignupFormBuilder.help.additionalFields') }}
+ {{ t('components.admin.SignupFormBuilder.help.additionalFields') }}
- {{ $t('components.admin.SignupFormBuilder.table.additionalFields.header.label') }}
+ {{ t('components.admin.SignupFormBuilder.table.additionalFields.header.label') }}
|
- {{ $t('components.admin.SignupFormBuilder.table.additionalFields.header.type') }}
+ {{ t('components.admin.SignupFormBuilder.table.additionalFields.header.type') }}
|
- {{ $t('components.admin.SignupFormBuilder.table.additionalFields.header.required') }}
+ {{ t('components.admin.SignupFormBuilder.table.additionalFields.header.required') }}
|
- {{ $t('components.admin.SignupFormBuilder.table.additionalFields.header.actions') }} |
+ {{ t('components.admin.SignupFormBuilder.table.additionalFields.header.actions') }} |
@@ -144,20 +144,20 @@ const move = (idx: number, increment: number) => {
|
|
@@ -192,7 +192,7 @@ const move = (idx: number, increment: number) => {
class="ui basic button"
@click.stop.prevent="addField"
>
- {{ $t('components.admin.SignupFormBuilder.button.add') }}
+ {{ t('components.admin.SignupFormBuilder.button.add') }}
diff --git a/front/src/components/album/Card.vue b/front/src/components/album/Card.vue
index 922f2c4ea..042a27445 100644
--- a/front/src/components/album/Card.vue
+++ b/front/src/components/album/Card.vue
@@ -1,5 +1,7 @@
@@ -71,13 +75,13 @@ const actionsButtonLabel = computed(() => t('components.audio.podcast.MobileRow.
>
@@ -136,7 +140,7 @@ const actionsButtonLabel = computed(() => t('components.audio.podcast.MobileRow.
({
![]()
({
({
class="column"
role="button"
:aria-label="favoriteButton"
- @click.stop="$store.dispatch('favorites/toggle', track.id)"
+ @click.stop="store.dispatch('favorites/toggle', track.id)"
>
({
class="column"
role="button"
:aria-label="labels.addToPlaylist"
- @click.stop="$store.commit('playlists/chooseTrack', track)"
+ @click.stop="store.commit('playlists/chooseTrack', track)"
>
{{
@@ -236,7 +239,7 @@ const labels = computed(() => ({
role="button"
:aria-label="albumDetailsButton"
@click.prevent.exact="
- $router.push({
+ router.push({
name: 'library.albums.detail',
params: { id: track.album?.id },
})
@@ -258,7 +261,7 @@ const labels = computed(() => ({
class="column"
role="button"
:aria-label="artistDetailsButton"
- @click.prevent.exact="$router.push({ name: 'library.artists.detail', params: { id: ac.artist.id } })"
+ @click.prevent.exact="router.push({ name: 'library.artists.detail', params: { id: ac.artist.id } })"
>
{{ ac.artist.name }}
@@ -271,7 +274,7 @@ const labels = computed(() => ({
role="button"
:aria-label="trackDetailsButton"
@click.prevent.exact="
- $router.push({
+ router.push({
name: 'library.tracks.detail',
params: { id: track.id },
})
diff --git a/front/src/components/audio/podcast/Row.vue b/front/src/components/audio/podcast/Row.vue
index b9b4ae35e..80f326fc5 100644
--- a/front/src/components/audio/podcast/Row.vue
+++ b/front/src/components/audio/podcast/Row.vue
@@ -5,6 +5,7 @@ import type { PlayOptionsProps } from '~/composables/audio/usePlayOptions'
import { ref } from 'vue'
import { useQueue } from '~/composables/audio/queue'
+import { useStore } from '~/store'
import axios from 'axios'
@@ -48,6 +49,8 @@ const props = withDefaults(defineProps(), {
account: null
})
+const store = useStore()
+
const description = ref('')
const renderedDescription = useMarkdown(description)
@@ -83,13 +86,13 @@ await fetchData()
>
diff --git a/front/src/components/audio/track/MobileRow.vue b/front/src/components/audio/track/MobileRow.vue
index 248d95d28..4c7f80ffd 100644
--- a/front/src/components/audio/track/MobileRow.vue
+++ b/front/src/components/audio/track/MobileRow.vue
@@ -7,6 +7,8 @@ import { useI18n } from 'vue-i18n'
import { usePlayer } from '~/composables/audio/player'
import { useQueue } from '~/composables/audio/queue'
+import { useStore } from '~/store'
+
import usePlayOptions from '~/composables/audio/usePlayOptions'
@@ -54,6 +56,8 @@ const { isPlaying } = usePlayer()
const { activateTrack } = usePlayOptions(props)
const { t } = useI18n()
+const store = useStore()
+
const actionsButtonLabel = computed(() => t('components.audio.track.MobileRow.button.actions'))
@@ -71,13 +75,13 @@ const actionsButtonLabel = computed(() => t('components.audio.track.MobileRow.bu
>
@@ -119,7 +123,7 @@ const actionsButtonLabel = computed(() => t('components.audio.track.MobileRow.bu
![]()
@@ -133,7 +136,7 @@ const labels = computed(() => ({
({
class="column"
role="button"
:aria-label="favoriteButton"
- @click.stop="$store.dispatch('favorites/toggle', track.id)"
+ @click.stop="store.dispatch('favorites/toggle', track.id)"
>
{{ favoriteButton }}
@@ -174,7 +177,7 @@ const labels = computed(() => ({
class="column"
role="button"
:aria-label="labels.startRadio"
- @click.stop.prevent="() => { $store.dispatch('radios/start', { type: 'similar', objectId: track.id }); modal.closeModal() }"
+ @click.stop.prevent="() => { store.dispatch('radios/start', { type: 'similar', objectId: track.id }); modal.closeModal() }"
>
{{ labels.startRadio }}
@@ -185,7 +188,7 @@ const labels = computed(() => ({
class="column"
role="button"
:aria-label="labels.addToPlaylist"
- @click.stop="$store.commit('playlists/chooseTrack', track)"
+ @click.stop="store.commit('playlists/chooseTrack', track)"
>
@@ -202,7 +205,7 @@ const labels = computed(() => ({
class="column"
role="button"
:aria-label="albumDetailsButton"
- @click.prevent.exact="$router.push({ name: 'library.albums.detail', params: { id: track.album?.id } })"
+ @click.prevent.exact="router.push({ name: 'library.albums.detail', params: { id: track.album?.id } })"
>
{{ albumDetailsButton }}
@@ -218,7 +221,7 @@ const labels = computed(() => ({
class="column"
role="button"
:aria-label="artistDetailsButton"
- @click.prevent.exact="$router.push({ name: 'library.artists.detail', params: { id: ac.artist.id } })"
+ @click.prevent.exact="router.push({ name: 'library.artists.detail', params: { id: ac.artist.id } })"
>
{{ ac.credit }}
@@ -230,7 +233,7 @@ const labels = computed(() => ({
class="column"
role="button"
:aria-label="trackDetailsButton"
- @click.prevent.exact="$router.push({ name: 'library.tracks.detail', params: { id: track.id } })"
+ @click.prevent.exact="router.push({ name: 'library.tracks.detail', params: { id: track.id } })"
>
{{ trackDetailsButton }}
diff --git a/front/src/components/audio/track/Row.vue b/front/src/components/audio/track/Row.vue
index 8957b02c9..49855bacc 100644
--- a/front/src/components/audio/track/Row.vue
+++ b/front/src/components/audio/track/Row.vue
@@ -11,6 +11,10 @@ import PlayIndicator from '~/components/audio/track/PlayIndicator.vue'
import PlayButton from '~/components/audio/PlayButton.vue'
import { usePlayer } from '~/composables/audio/player'
import { useQueue } from '~/composables/audio/queue'
+import { useStore } from '~/store'
+
+
+const store = useStore()
interface Props extends PlayOptionsProps {
track: Track
@@ -119,19 +123,19 @@ const hover = ref(false)
>
@@ -183,7 +187,7 @@ const hover = ref(false)
{
})
const { t } = useI18n()
+const store = useStore()
+
const labels = computed(() => ({
title: t('components.audio.track.Table.table.header.title'),
album: t('components.audio.track.Table.table.header.album'),
@@ -202,7 +206,7 @@ const updatePage = (page: number) => {
{{ labels.artist }}
(), {
})
const store = useStore()
+const { t } = useI18n()
const objects = reactive([] as Listening[])
const count = ref(0)
@@ -110,12 +112,12 @@ watch(() => props.websocketHandlers.includes('Listen'), (to) => {
![]()
props.websocketHandlers.includes('Listen'), (to) => {
>
props.websocketHandlers.includes('Listen'), (to) => {
:class="['ui', 'basic', 'button']"
@click="fetchData(nextPage as string)"
>
- {{ $t('components.audio.track.Widget.button.more') }}
+ {{ t('components.audio.track.Widget.button.more') }}
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
- {{ $t('components.auth.ApplicationEdit.link.settings') }}
+ {{ t('components.auth.ApplicationEdit.link.settings') }}
{
class="ui negative message"
>
-
+
{
>
-
+
{
type="text"
>
- {{ $t('components.auth.ApplicationForm.help.redirectUri') }}
+ {{ t('components.auth.ApplicationForm.help.redirectUri') }}
-
+
- {{ $t('components.auth.ApplicationForm.label.scopes.description') }}
+ {{ t('components.auth.ApplicationForm.label.scopes.description') }}
{
type="submit"
>
- {{ $t('components.auth.ApplicationForm.button.update') }}
+ {{ t('components.auth.ApplicationForm.button.update') }}
- {{ $t('components.auth.ApplicationForm.button.create') }}
+ {{ t('components.auth.ApplicationForm.button.create') }}
diff --git a/front/src/components/auth/ApplicationNew.vue b/front/src/components/auth/ApplicationNew.vue
index 9cb2ac956..79ac5957c 100644
--- a/front/src/components/auth/ApplicationNew.vue
+++ b/front/src/components/auth/ApplicationNew.vue
@@ -58,7 +58,7 @@ const created = (application: Application) => {
- {{ $t('components.auth.ApplicationNew.link.settings') }}
+ {{ t('components.auth.ApplicationNew.link.settings') }}