feat: add support i18n (#1468)

This commit is contained in:
JellyBrick
2023-12-01 01:30:46 +09:00
committed by GitHub
parent 7f71c36dc0
commit 7401cf69ad
65 changed files with 1226 additions and 303 deletions

View File

@ -1,6 +1,7 @@
import { createPlugin } from '@/utils';
import registerCallback from '@/providers/song-info';
import { addScrobble, getAndSetSessionKey, setNowPlaying } from './main';
import { t } from '@/i18n';
export interface LastFmPluginConfig {
enabled: boolean;
@ -33,8 +34,8 @@ export interface LastFmPluginConfig {
}
export default createPlugin({
name: 'Last.fm',
description: 'Add scrobbling support for Last.fm',
name: t('plugins.last-fm.name'),
description: t('plugins.last-fm.description'),
restartNeeded: true,
config: {
enabled: false,