mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
lyrics: add translation lyrics for netease.ts (#951)
* lyrics: add translation lyrics for netease.ts
This commit is contained in:
parent
e3751229b6
commit
ae41fe99bb
5 changed files with 90 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue