fix: correct typos in Python, Chinese, Japanese and Korean locales#1774
Conversation
- Fix "emoji_registed" → "emoji_registered" in mmipkg_tool.py - Fix duplicated Chinese character "的的" → "的" in README_CN.md - Fix 9 Japanese locale errors (mixed Chinese/Japanese chars, typos) - Fix 9 Korean locale errors (misspellings and garbled characters)
总览本PR包含跨多个文件的批量字错修正和本地化文案调整。更新了日文和韩文UI文案的字词错误,修正了中文文档的重复字问题,以及Python脚本中的目录路径拼写错误。 改动本地化与拼写修正
预估代码审查工作量🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/mmipkg_tool.py`:
- Line 456: 默认输出目录使用了 "data/emoji_registered",与 WebUI 的约定 EMOJI_REGISTERED_DIR /
EMOJI_DIR ("data/emoji") 不一致;请在 scripts/mmipkg_tool.py 中将涉及默认导出/输出目录的变量和参数(例如
output_dir、default_output_dir 或函数中默认参数)从 "data/emoji_registered" 改为
"data/emoji",确保所有出现此默认值的位置都统一为 "data/emoji"(包括文件内第一个赋值和任何后续默认参数或常量引用),以对齐
src/webui/routers/emoji/support.py 的目录约定并避免导入/注册遗漏。
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: efaddd9d-135d-4637-894d-a7a289fa23f0
📒 Files selected for processing (4)
dashboard/src/i18n/locales/ja.jsondashboard/src/i18n/locales/ko.jsondocs/README_CN.mdscripts/mmipkg_tool.py
| # 如果未指定输出目录,使用默认的已注册表情包目录 | ||
| if output_dir is None: | ||
| output_dir = os.path.join(PROJECT_ROOT, "data", "emoji_registed") | ||
| output_dir = os.path.join(PROJECT_ROOT, "data", "emoji_registered") |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# 验证项目中注册表情包的实际存储目录
# 搜索 EMOJI_REGISTERED_DIR 或 EMOJI_DIR 的定义
echo "=== 查找表情包目录定义 ==="
rg -n "EMOJI_REGISTERED_DIR|EMOJI_DIR\s*=" --type=py
# 搜索 data/emoji_registered 的使用
echo -e "\n=== 查找 data/emoji_registered 的使用 ==="
rg -n "emoji_registered" --type=py -C2
# 搜索 data/emoji 目录的使用(排除 emoji_registered)
echo -e "\n=== 查找 data/emoji 目录的使用(排除 _registered) ==="
rg -n 'data[/\\]emoji(?!_)' --type=py -C2Repository: Mai-with-u/MaiBot
Length of output: 1499
脚本默认输出目录与 WebUI 表情目录约定不一致:建议对齐 data/emoji
scripts/mmipkg_tool.py默认导入/输出目录写为data/emoji_registered(lines 456、999)- WebUI 侧表情“已注册/目录”约定为
data/emoji:src/webui/routers/emoji/support.py中EMOJI_REGISTERED_DIR = "data/emoji"且EMOJI_DIR = EMOJI_REGISTERED_DIR - 建议将
mmipkg_tool.py的默认output_dir/default_output_dir改为data/emoji,避免后续注册/维护/清理按data/emoji查找导致导入结果异常或遗漏
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@scripts/mmipkg_tool.py` at line 456, 默认输出目录使用了 "data/emoji_registered",与
WebUI 的约定 EMOJI_REGISTERED_DIR / EMOJI_DIR ("data/emoji") 不一致;请在
scripts/mmipkg_tool.py 中将涉及默认导出/输出目录的变量和参数(例如 output_dir、default_output_dir
或函数中默认参数)从 "data/emoji_registered" 改为 "data/emoji",确保所有出现此默认值的位置都统一为
"data/emoji"(包括文件内第一个赋值和任何后续默认参数或常量引用),以对齐 src/webui/routers/emoji/support.py
的目录约定并避免导入/注册遗漏。
zh-CN目标翻译作为常规 GitHub 编辑面;常规翻译以 Crowdin ->l10n_*PR 回流为准,详见docs/i18n.md请填写以下内容
(删除掉中括号内的空格,并替换为小写的x)
main分支 禁止修改,请确认本次提交的分支 不是main分支src/A_memorix,我确认已阅读src/A_memorix/MODIFICATION_POLICY.md,不涉及则无需勾选其他信息
Summary by CodeRabbit
发布说明
Bug Fixes
Documentation