Files
aibis-dream/.cursor/rules/yarn-localization.mdc
T

32 lines
963 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: YARN 修改时保留本地化信息 #line
globs: "**/*.yarn"
alwaysApply: false
---
# YARN 本地化标识符保护
修改 YARN 对话文件时,**不要动任何 `#line:` 相关的内容**。
## 说明
`#line:` 后跟的哈希值(如 `#line:018dc78`)是 YARN Spinner 的本地化行标识符,用于与 `*_zh-Hans.asset` 等本地化资源文件关联。修改或删除会导致:
- 已有翻译无法正确匹配
- 本地化系统失效或错乱
- 需要重新导出/重新翻译
## 格式示例
```
me: 我需要看看情绪信号在【滤波器】处理时发生了什么 #line:046cf9e
->开始追踪情绪信号 #line:0443e38
Task: 检查滤波器处理链路 #line:018dc78
```
## 修改规则
- **可修改**:对话内容、节点标题、命令、选项文本
- **不可修改**`#line:xxxxxxxx` 整段、其位置、哈希值
- 新增行或节点:不要手动添加 `#line`,留给 YARN Spinner 工具自动生成