diff --git a/src/renderer/features/lyrics/lyrics.tsx b/src/renderer/features/lyrics/lyrics.tsx index f606300bc..4189cf47b 100644 --- a/src/renderer/features/lyrics/lyrics.tsx +++ b/src/renderer/features/lyrics/lyrics.tsx @@ -5,6 +5,7 @@ import { ErrorBoundary } from 'react-error-boundary'; import { RiInformationFill } from 'react-icons/ri'; import styled from 'styled-components'; import { useSongLyricsByRemoteId, useSongLyricsBySong } from './queries/lyric-query'; +import { translateLyrics } from './queries/lyric-translate'; import { SynchronizedLyrics, SynchronizedLyricsProps } from './synchronized-lyrics'; import { Spinner, TextTitle } from '/@/renderer/components'; import { ErrorFallback } from '/@/renderer/features/action-required'; @@ -17,7 +18,6 @@ import { FullLyricsMetadata, LyricSource, LyricsOverride } from '/@/renderer/api import { LyricsActions } from '/@/renderer/features/lyrics/lyrics-actions'; import { queryKeys } from '/@/renderer/api/query-keys'; import { queryClient } from '/@/renderer/lib/react-query'; -import { translateLyrics } from '/@/main/features/core/lyrics/translate'; const ActionsContainer = styled.div` position: absolute; diff --git a/src/main/features/core/lyrics/translate.ts b/src/renderer/features/lyrics/queries/lyric-translate.ts similarity index 100% rename from src/main/features/core/lyrics/translate.ts rename to src/renderer/features/lyrics/queries/lyric-translate.ts diff --git a/src/renderer/features/settings/components/playback/lyric-settings.tsx b/src/renderer/features/settings/components/playback/lyric-settings.tsx index a23a02bcc..b9bd70eec 100644 --- a/src/renderer/features/settings/components/playback/lyric-settings.tsx +++ b/src/renderer/features/settings/components/playback/lyric-settings.tsx @@ -161,7 +161,7 @@ export const LyricSettings = () => { }} /> ), - description: t('Api key for translation'), + description: t('Api key for translation (Support global service endpoint only)'), isHidden: !isElectron(), title: t('setting.apiKey', { postProcess: 'sentenceCase' }), },