From 60f38a3117dd15da7456b875f16c81b7f2a6ef47 Mon Sep 17 00:00:00 2001 From: jon r Date: Thu, 3 Apr 2025 12:49:38 +0200 Subject: [PATCH] fix(front): translations --- front/src/LegacyLayout.vue | 105 ------------------ front/src/components/SetInstanceModal.vue | 4 + front/src/components/admin/SettingsGroup.vue | 3 +- front/src/components/channels/AlbumSelect.vue | 2 +- front/src/components/library/EditForm.vue | 6 +- front/src/components/library/FileUpload.vue | 4 +- front/src/locales/en_US.json | 21 +++- front/src/ui/components/Sidebar.vue | 13 --- front/src/ui/components/UploadGroupList.vue | 4 + front/src/ui/components/UploadList.vue | 4 + front/src/ui/components/UploadModal.vue | 4 +- front/src/ui/modals/Search.vue | 5 +- front/src/ui/modals/Upload.vue | 6 +- front/src/ui/pages/upload.vue | 4 + front/src/ui/pages/upload/all.vue | 4 + front/src/ui/pages/upload/index.vue | 4 + front/src/views/Search.vue | 3 +- front/src/views/content/libraries/Quota.vue | 2 +- front/src/views/content/upload/Home.vue | 4 + front/src/views/playlists/Detail.vue | 5 +- 20 files changed, 69 insertions(+), 138 deletions(-) delete mode 100644 front/src/LegacyLayout.vue diff --git a/front/src/LegacyLayout.vue b/front/src/LegacyLayout.vue deleted file mode 100644 index 4bf2925cc..000000000 --- a/front/src/LegacyLayout.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - diff --git a/front/src/components/SetInstanceModal.vue b/front/src/components/SetInstanceModal.vue index a35e0f51c..765d40173 100644 --- a/front/src/components/SetInstanceModal.vue +++ b/front/src/components/SetInstanceModal.vue @@ -7,6 +7,8 @@ import { ref, computed, watch, nextTick } from 'vue' import { useStore } from '~/store' import { useI18n } from 'vue-i18n' +// TODO: Delete this file? + const { t } = useI18n() interface Props { @@ -65,6 +67,7 @@ const checkAndSwitch = async (url: string) => { diff --git a/front/src/components/admin/SettingsGroup.vue b/front/src/components/admin/SettingsGroup.vue index 48110fab5..73d79f229 100644 --- a/front/src/components/admin/SettingsGroup.vue +++ b/front/src/components/admin/SettingsGroup.vue @@ -250,8 +250,7 @@ const save = async () => { red >

- {{ group.label }}: - {{ t('components.admin.SettingsGroup.header.error') }} + {{ t('components.admin.SettingsGroup.header.error', {label: group.label}) }}