Commit Graph

8 Commits

Author SHA1 Message Date
DrSmoothl
0a08973c41 feat: Enhance emoji and image management with asynchronous background processing
- Added support for scheduling background tasks to build emoji and image descriptions when not found in cache.
- Improved error handling and logging for emoji and image processing.
- Updated `SessionMessage` processing to allow for optional heavy media analysis and voice transcription.
- Refactored logging messages for better clarity and consistency across various modules.
- Introduced a new function to build outbound log previews for messages, enhancing logging capabilities.
2026-03-26 23:03:47 +08:00
晴猫
5eac9b3f31 fix: default i18n locale from system locale 2026-03-15 09:41:23 +09:00
UnCLAS-Prommer
e9badbc307 修正类型注解 2026-03-13 16:14:54 +08:00
UnCLAS-Prommer
de39099cd9 sourcery advice 2026-03-13 16:14:09 +08:00
春河晴
568685758b fix(i18n): tighten prompt and catalog fallback handling 2026-03-13 01:59:21 +09:00
春河晴
d418a8451b feat: 增强国际化验证功能,添加对共享翻译字符串的支持,优化提示模板加载逻辑 2026-03-13 01:59:20 +09:00
春河晴
55eb911dd3 fix(i18n): 修复 PROMPT_EXTENSIONS 元组声明、消除重复代码、优化锁策略
- fix: PROMPT_EXTENSIONS = (".prompt") 是字符串非元组,改为 (".prompt",)
- refactor: 将 extract_placeholders/format_template 统一到 loaders.py,
  消除 formatting.py、prompt_i18n.py、i18n_validate.py 三处重复
- perf: _get_catalog 和 load_prompt 改为双重检查锁定,I/O 不再阻塞其他线程
- perf: _log_once 使用独立 _warning_lock,不再与 _cache_lock 竞争
- fix: _scan_legacy_prompt_directory 添加 prompts_root 参数,修正 relative_to 语义
- refactor: 合并 _supported_prompt_files 两个变体为单函数 + recursive 参数
- docs: i18n.md 强化 repository-specific 校验策略标注,修正时间表述冗余
- fix: 验证脚本错误消息移除 Crowdin 暗示,标注为仓库级校验策略

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 01:59:20 +09:00
春河晴
c470fdfd1e i18n: crowdin integration 2026-03-12 17:23:17 +09:00