From 10dc14f109fc3aede6ea13d7b4632d4e8fba2eb4 Mon Sep 17 00:00:00 2001
From: wvffle 
Date: Fri, 25 Nov 2022 20:38:25 +0000
Subject: [PATCH] Fix all locale linting errors except unused keys
---
 front/.eslintrc.js                            |   7 +-
 front/src/components/SetInstanceModal.vue     |  11 +-
 front/src/components/auth/Authorize.vue       |   4 +-
 .../components/playlists/PlaylistModal.vue    |   6 +-
 front/src/composables/useErrorHandler.ts      |   2 +-
 front/src/init/sentry.ts                      |  17 ++-
 front/src/locales/ca.json                     |   4 +-
 front/src/locales/cs.json                     |   4 +-
 front/src/locales/de.json                     |   4 +-
 front/src/locales/el.json                     |   2 +-
 front/src/locales/en_GB.json                  |   4 +-
 front/src/locales/en_US.json                  |  14 +-
 front/src/locales/es.json                     |   2 +-
 front/src/locales/eu.json                     |   4 +-
 front/src/locales/fr_FR.json                  |  82 +++++------
 front/src/locales/gl.json                     |   4 +-
 front/src/locales/hu.json                     |   2 +-
 front/src/locales/it.json                     |   4 +-
 front/src/locales/ja_JP.json                  |   4 +-
 front/src/locales/nb_NO.json                  |  16 +--
 front/src/locales/nl.json                     |   4 +-
 front/src/locales/oc.json                     | 130 +++++++++---------
 front/src/locales/pl.json                     |  10 +-
 front/src/locales/pt_BR.json                  |   4 +-
 front/src/locales/ru.json                     |   4 +-
 front/src/locales/sv.json                     |   2 +-
 front/src/locales/zh_Hans.json                |   4 +-
 27 files changed, 188 insertions(+), 167 deletions(-)
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 }}
+