mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: add show lyrics translation to settings
This commit is contained in:
parent
d4be289946
commit
0dd30e251f
6 changed files with 53 additions and 9 deletions
|
|
@ -3,13 +3,19 @@ import pkg from "../../package.json";
|
|||
|
||||
const updateSetting = () => {
|
||||
const parsedSettings = JSON.parse(localStorage.getItem("settings"));
|
||||
const {
|
||||
playlistCategories,
|
||||
showUnavailableSongInGreyStyle,
|
||||
automaticallyCacheSongs,
|
||||
nyancatStyle,
|
||||
showLyricsTranslation,
|
||||
} = initLocalStorage.settings;
|
||||
const settings = {
|
||||
playlistCategories: initLocalStorage?.settings?.playlistCategories,
|
||||
showUnavailableSongInGreyStyle:
|
||||
initLocalStorage?.settings?.showUnavailableSongInGreyStyle,
|
||||
automaticallyCacheSongs:
|
||||
initLocalStorage?.settings?.automaticallyCacheSongs,
|
||||
nyancatStyle: initLocalStorage?.settings?.nyancatStyle,
|
||||
playlistCategories,
|
||||
showUnavailableSongInGreyStyle,
|
||||
automaticallyCacheSongs,
|
||||
nyancatStyle,
|
||||
showLyricsTranslation,
|
||||
...parsedSettings,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue