diff --git a/front/.eslintrc.js b/front/.eslintrc.js index 638262396..1a89bdda3 100644 --- a/front/.eslintrc.js +++ b/front/.eslintrc.js @@ -34,10 +34,15 @@ module.exports = { 'no-undef': 'off', // NOTE: i18n + '@intlify/vue-i18n/no-deprecated-i18n-component': 'error', '@intlify/vue-i18n/valid-message-syntax': 'error', + '@intlify/vue-i18n/no-i18n-t-path-prop': 'error', '@intlify/vue-i18n/no-missing-keys': 'error', '@intlify/vue-i18n/no-dynamic-keys': 'error', - '@intlify/vue-i18n/no-unused-keys': 'error', + '@intlify/vue-i18n/no-unused-keys': ['error', { + extensions: ['.ts', '.vue'], + enableFix: true + }], // TODO (wvffle): Remove after VUI and #1618 'vue/multi-word-component-names': 'off', diff --git a/front/src/components/SetInstanceModal.vue b/front/src/components/SetInstanceModal.vue index abf5d6d76..199724e39 100644 --- a/front/src/components/SetInstanceModal.vue +++ b/front/src/components/SetInstanceModal.vue @@ -99,7 +99,16 @@ const checkAndSwitch = async (url: string) => { v-if="$store.state.instance.instanceUrl" class="description" > - {{ $t('components.SetInstanceModal.message.currentConnection', {url: $store.state.instance.instanceUrl, hostname: $store.getters['instance/domain']}) }} + + + {{ $store.getters['instance/domain'] }} + + + + {{ $t('', {url: $store.state.instance.instanceUrl, hostname: $store.getters['instance/domain']}) }}

{{ $t('components.SetInstanceModal.help.selectPod') }} diff --git a/front/src/components/auth/Authorize.vue b/front/src/components/auth/Authorize.vue index d572aea4c..f56709640 100644 --- a/front/src/components/auth/Authorize.vue +++ b/front/src/components/auth/Authorize.vue @@ -219,7 +219,9 @@ whenever(() => props.clientId, fetchApplication, { immediate: true })

- {{ $t('components.auth.Authorize.help.redirect', {url: redirectUri}) }} + + {{ redirectUri }} +

diff --git a/front/src/components/playlists/PlaylistModal.vue b/front/src/components/playlists/PlaylistModal.vue index abb11b6c7..9f9590420 100644 --- a/front/src/components/playlists/PlaylistModal.vue +++ b/front/src/components/playlists/PlaylistModal.vue @@ -112,7 +112,11 @@ store.dispatch('playlists/fetchOwn') class="ui warning message" >

- {{ $t('components.playlists.PlaylistModal.warning.duplicate', {track: track?.title, playlist: duplicateTrackAddInfo.playlist_name}) }} + + {{ track?.title }} + {{ duplicateTrackAddInfo.playlist_name }} +

{{ track?.title }}

+