mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 02:51:46 +00:00
feat: add support i18n (#1468)
This commit is contained in:
@ -6,6 +6,7 @@ import {
|
||||
VudioVisualizer as vudio,
|
||||
WaveVisualizer as wave,
|
||||
} from './visualizers';
|
||||
import { t } from '@/i18n';
|
||||
|
||||
type WaveColor = {
|
||||
gradient: string[];
|
||||
@ -57,8 +58,8 @@ export type VisualizerPluginConfig = {
|
||||
};
|
||||
|
||||
export default createPlugin({
|
||||
name: 'Visualizer',
|
||||
description: 'Adds a visualizer to the player',
|
||||
name: t('plugins.visualizer.name'),
|
||||
description: t('plugins.visualizer.description'),
|
||||
restartNeeded: true,
|
||||
config: {
|
||||
enabled: false,
|
||||
@ -133,7 +134,7 @@ export default createPlugin({
|
||||
|
||||
return [
|
||||
{
|
||||
label: 'Type',
|
||||
label: t('plugins.visualizer.menu.visualizer-type'),
|
||||
submenu: visualizerTypes.map((visualizerType) => ({
|
||||
label: visualizerType,
|
||||
type: 'radio',
|
||||
|
||||
Reference in New Issue
Block a user