diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 370cc34d..7837dfb3 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -2158,6 +2158,9 @@ export default { acoustIdApiKeyPlaceholder: 'Please enter AcoustID API Key', acoustIdApiKeyHint: 'Used to identify MusicBrainz recording IDs from audio fingerprints', acoustIdApiKeyRequired: 'Please enter AcoustID API Key', + musicMetadataToSimplified: 'Convert Music Metadata to Simplified Chinese', + musicMetadataToSimplifiedHint: + 'Force recognized music titles, artists, albums, categories, and other metadata to Simplified Chinese', tmdbImageDomain: 'TMDB Image Service Address', tmdbImageDomainPlaceholder: 'image.tmdb.org', tmdbImageDomainHint: 'Customize TheMovieDb image service domain or proxy address', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 6d81b455..593c4dea 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -2133,6 +2133,8 @@ export default { acoustIdApiKeyPlaceholder: '请输入 AcoustID API Key', acoustIdApiKeyHint: '用于通过音频指纹识别 MusicBrainz 录音 ID', acoustIdApiKeyRequired: '请输入 AcoustID API Key', + musicMetadataToSimplified: '音乐媒体信息转简体中文', + musicMetadataToSimplifiedHint: '将识别结果中的曲名、艺术家、专辑和分类等音乐信息强制转换为简体中文', tmdbImageDomain: 'TMDB 图片服务地址', tmdbImageDomainPlaceholder: 'image.tmdb.org', tmdbImageDomainHint: '自定义 TheMovieDb 图片服务域名或代理地址', diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index c77fbbad..7c80f254 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -2132,6 +2132,8 @@ export default { acoustIdApiKeyPlaceholder: '請輸入 AcoustID API Key', acoustIdApiKeyHint: '用於通過音訊指紋識別 MusicBrainz 錄音 ID', acoustIdApiKeyRequired: '請輸入 AcoustID API Key', + musicMetadataToSimplified: '音樂媒體資訊轉簡體中文', + musicMetadataToSimplifiedHint: '將識別結果中的曲名、藝術家、專輯和分類等音樂資訊強制轉換為簡體中文', tmdbImageDomain: 'TMDB 圖片服務地址', tmdbImageDomainPlaceholder: 'image.tmdb.org', tmdbImageDomainHint: '自定義 TheMovieDb 圖片服務域名或代理地址', diff --git a/src/views/setting/AccountSettingSystem.vue b/src/views/setting/AccountSettingSystem.vue index 984fd22c..ea4ee9b0 100644 --- a/src/views/setting/AccountSettingSystem.vue +++ b/src/views/setting/AccountSettingSystem.vue @@ -105,6 +105,7 @@ const SystemSettings = ref({ TMDB_API_DOMAIN: null, TMDB_API_KEY: null, ACOUSTID_API_KEY: null, + MUSIC_METADATA_TO_SIMPLIFIED: true, TMDB_IMAGE_DOMAIN: null, MUSIC_COVER_PROXY: null, TMDB_LOCALE: null, @@ -2126,6 +2127,14 @@ watch(currentLlmSnapshotKey, (snapshotKey, previousSnapshotKey) => { + + + { const user = userEvent.setup() await renderSettings() const dialog = await openAdvancedTab('媒体') + expect(dialog.getByLabelText('音乐媒体信息转简体中文')).toBeChecked() await fireEvent.update(dialog.getByLabelText('TMDB API服务地址'), 'api.tmdb.org') await fireEvent.update(dialog.getByLabelText('TMDB API Key'), 'tmdb-key') await fireEvent.update(dialog.getByLabelText('AcoustID API Key'), 'acoustid-key') @@ -909,6 +910,7 @@ describe('AccountSettingSystem', () => { for (const label of [ '跟随TMDB识别整理', 'TMDB 刮削原语种图片', + '音乐媒体信息转简体中文', '优先使用插件识别', '共享使用媒体识别数据', 'Fanart图片数据源', @@ -928,6 +930,7 @@ describe('AccountSettingSystem', () => { MEDIA_RECOGNIZE_SHARE: false, META_CACHE_EXPIRE: '48', MUSIC_COVER_PROXY: 'https://music.example', + MUSIC_METADATA_TO_SIMPLIFIED: false, RECOGNIZE_PLUGIN_FIRST: true, SCRAP_FOLLOW_TMDB: false, TMDB_API_DOMAIN: 'api.tmdb.org',