From 49d0cb6ef5134e04f6f56d9bd2566b24fa7d42be Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Sun, 15 Jun 2025 13:54:39 +0900 Subject: [PATCH] . --- controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.js b/controller.js index ec686aa..c466b0d 100644 --- a/controller.js +++ b/controller.js @@ -119,7 +119,7 @@ class ControllerPlugin extends BaseControllerPlugin { if (this.controller.config.get('ClusterChatSync.use_libretranslate')) { this.translator = new LibreTranslateAPI(this.controller.config.get('ClusterChatSync.libretranslate_url'), this.controller.config.get('ClusterChatSync.libretranslate_key'), this.logger); await this.translator.init(); - this.translator_language = this.controller.config.get('ClusterChatSync.libretranslate_language').trim().split(/\s+/); + this.translator_language = this.controller.config.get('ClusterChatSync.libretranslate_language').trim().split(/\s+/) || ['zh-Hant', 'en']; } }