text: import { playlistCategories } from '@/utils/staticData';
  import shortcuts from '@/utils/shortcuts';
  
  console.debug('[debug][initLocalStorage.js]');
  const enabledPlaylistCategories = playlistCategories
    .filter(c => c.enable)
    .map(c => c.name);
  
  let localStorage = {
    player: {},
    settings: {
      lang: null,
      musicLanguage: 'all',
      appearance: 'auto',
      musicQuality: 320000,
      showGithubIcon: false,
      lyricFontSize: 28,
      outputDevice: 'default',
      showPlaylistsByAppleMusic: false,
      showUnavailableSongInGreyStyle: false,
      automaticallyCacheSongs: false,
      cacheLimit: false,
      nyancatStyle: false,
      showLyricsTranslation: true,
      lyricsBackground: true,
      minimizeToTray: false,
      enableDiscordRichPresence: false,
      enableGlobalShortcut: true,
      showLibraryDefault: false,
      enabledPlaylistCategories,
      proxyConfig: {
        protocol: 'noProxy',
        server: '',
        port: null,
      },
      shortcuts: shortcuts,
    },
    data: {
      user: {},
      likedSongPlaylistID: 0,
      lastRefreshCookieDate: 0,
      loginMode: null,
    },
  };
  
  if (process.env.IS_ELECTRON === true) {
    localStorage.settings.automaticallyCacheSongs = true;
  }
  
  export default localStorage;
  