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,4 +1,5 @@
import { createPlugin } from '@/utils';
import { t } from '@/i18n';
export default createPlugin<
unknown,
@ -8,8 +9,8 @@ export default createPlugin<
isCompactSidebarDisabled: () => boolean;
}
>({
name: 'Compact Sidebar',
description: 'Always set the sidebar in compact mode',
name: t('plugins.compact-sidebar.name'),
description: t('plugins.compact-sidebar.description'),
restartNeeded: false,
config: {
enabled: false,