mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
lyrics: add translation lyrics for netease.ts (#951)
* lyrics: add translation lyrics for netease.ts
This commit is contained in:
@@ -101,6 +101,30 @@ export const LyricSettings = () => {
|
||||
isHidden: !isElectron(),
|
||||
title: t('setting.lyricFetchProvider', { postProcess: 'sentenceCase' }),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
<Switch
|
||||
aria-label="Enable NetEase translations"
|
||||
defaultChecked={settings.enableNeteaseTranslation}
|
||||
onChange={(e) => {
|
||||
const isChecked = e.currentTarget.checked;
|
||||
setSettings({
|
||||
lyrics: {
|
||||
...settings,
|
||||
enableNeteaseTranslation: e.currentTarget.checked,
|
||||
},
|
||||
});
|
||||
localSettings?.set('enableNeteaseTranslation', isChecked);
|
||||
}}
|
||||
/>
|
||||
),
|
||||
description: t('setting.neteaseTranslation', {
|
||||
context: 'description',
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
isHidden: !isElectron(),
|
||||
title: t('setting.neteaseTranslation', { postProcess: 'sentenceCase' }),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
<NumberInput
|
||||
|
||||
Reference in New Issue
Block a user