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

@ -2,6 +2,7 @@ import { createPlugin } from '@/utils';
import { onConfigChange, onMainLoad } from './main';
import { onMenu } from './menu';
import { t } from '@/i18n';
export interface NotificationsPluginConfig {
enabled: boolean;
@ -35,9 +36,8 @@ export const defaultConfig: NotificationsPluginConfig = {
};
export default createPlugin({
name: 'Notifications',
description:
'Display a notification when a song starts playing (interactive notifications are available on windows)',
name: t('plugins.notifications.name'),
description: t('plugins.notifications.description'),
restartNeeded: true,
config: defaultConfig,
menu: onMenu,