mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
feat: add support i18n (#1468)
This commit is contained in:
@ -4,6 +4,7 @@ import { createPlugin } from '@/utils';
|
||||
import { onConfigChange, onMainLoad } from './main';
|
||||
import { onMenu } from './menu';
|
||||
import { onPlayerApiReady, onRendererLoad } from './renderer';
|
||||
import { t } from '@/i18n';
|
||||
|
||||
export type PictureInPicturePluginConfig = {
|
||||
enabled: boolean;
|
||||
@ -18,8 +19,8 @@ export type PictureInPicturePluginConfig = {
|
||||
};
|
||||
|
||||
export default createPlugin({
|
||||
name: 'Picture In Picture',
|
||||
description: 'Allows to switch the app to picture-in-picture mode',
|
||||
name: t('plugins.picture-in-picture.name'),
|
||||
description: t('plugins.picture-in-picture.description'),
|
||||
restartNeeded: true,
|
||||
config: {
|
||||
'enabled': false,
|
||||
|
||||
Reference in New Issue
Block a user