feat(i18n): i18n auto-importer

This commit is contained in:
JellyBrick
2023-12-02 02:13:49 +09:00
parent c8554a12f6
commit fd3438a20d
8 changed files with 75 additions and 16 deletions

View File

@ -26,6 +26,8 @@ import { deepEqual } from 'fast-equals';
import { allPlugins, mainPlugins } from 'virtual:plugins';
import { languageResources } from 'virtual:i18n';
import config from '@/config';
import { refreshMenu, setApplicationMenu } from '@/menu';
@ -52,8 +54,6 @@ import {
import { LoggerPrefix } from '@/utils';
import { loadI18n, setLanguage, t } from '@/i18n';
import { languageResources } from '@/i18n/resources';
import type { PluginConfig } from '@/types/plugins';
// Catch errors and log them