- Implemented new translation plugins: ollamaTranslate, potTranslate, reversoEmbedTranslate, sogouEmbedTranslate, tencentTranslate, transmartEmbedTranslate, volcengineTranslate, yandexEmbedTranslate, youdaoGeneralTranslate, and youdaoLlmTranslate.
- Created a centralized rendererRegistry to manage translation plugins.
- Defined types for plugin configuration and translation functionality in types.ts.
- Updated file handling in coverUtil, dictUtil, export, fontUtil, restore, sqlUtil, and other utility files to use window.electronAPI for accessing Electron modules.
- Refactored IPC calls to utilize the new context bridge for better security and maintainability.
- Introduced a preload script to expose necessary APIs to the renderer process, enhancing the overall architecture.
- Ensured compatibility with Electron's security model by removing direct access to Node.js modules from the renderer.