From 91ba7df086710205b5bcd35b89c65e6591a45a82 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:46:27 +0000 Subject: [PATCH] feat: Add full i18n support to Smart Mind Map plugin - Consolidated smart_mind_map.py and smart_mind_map_cn.py into a single file. - Added TRANSLATIONS dictionary supporting 17 languages (en-US, ko-KR, fr-FR, es-AR, en-CA, fr-CA, ja-JP, de-DE, zh-HK, it-IT, zh-CN, en-GB, es-MX, id-ID, es-ES, de-AT, en-AU, vi-VN). - Implemented automatic language detection with fallback to browser/local storage. - Added localized date formatting for various locales. - Added fallback mapping for regional variants (e.g. zh-TW -> zh-HK, es-AR -> es-ES). - Updated HTML/JS templates to use injected translations. - Fixed SyntaxWarning in regex strings. - Verified frontend rendering with Playwright. Co-authored-by: Fu-Jie <33599649+Fu-Jie@users.noreply.github.com> --- plugins/actions/smart-mind-map/smart_mind_map.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/actions/smart-mind-map/smart_mind_map.py b/plugins/actions/smart-mind-map/smart_mind_map.py index 858391b..4c0df1a 100644 --- a/plugins/actions/smart-mind-map/smart_mind_map.py +++ b/plugins/actions/smart-mind-map/smart_mind_map.py @@ -1245,6 +1245,7 @@ class Action: } # Fallback mapping for variants not in TRANSLATIONS keys self.fallback_map = { + "zh-TW": "zh-HK", "es-AR": "es-ES", "es-MX": "es-ES", "fr-CA": "fr-FR",