From bfb203909546b54cb9d166e157adf7f8798d7ae0 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 21:05:45 +0000 Subject: [PATCH] feat: Add full i18n support, security fixes, and zh-TW to Smart Mind Map plugin - Consolidated smart_mind_map.py and smart_mind_map_cn.py into a single file. - Added TRANSLATIONS dictionary supporting 18 languages (including explicit zh-TW support). - Implemented robust language detection with fallback to browser/local storage. - Added localized date formatting for various locales. - Added base language fallback (e.g., fr-BE -> fr-FR) and variant mapping. - Fixed critical security vulnerabilities: - Prevented JS injection by safely escaping IDs with `json.dumps`. - Prevented XSS by sanitizing user input and language codes. - Prevented DoS crashes from curly braces in LLM output by replacing `.format()` with safe string replacement. - Fixed regex regression by using standard strings with escaped backslashes. - Restored clickable "Markmap" link in the footer. - Verified all changes with comprehensive unit and security tests. Co-authored-by: Fu-Jie <33599649+Fu-Jie@users.noreply.github.com>