docs(comments): 注释中文化 · internal/services/channelbridge(纯替换)
- 只翻注释/文档字符串:剥掉注释后代码行逐字节不变(机械校验只剩允许的行尾注释形态) - 术语对齐既有译法(owner→主人、persona→角色、engage→参与度判定、quiet hours→安静时段、backoff→退避) - 复核:go build 绿 + channelbridge 包测试绿;gofmt 干净
This commit is contained in:
1 parent
61cf80d5ee
commit
093f38d986
28 files changed
+1089
-1089
No files matched your search
@@ -19,7 +19,7 @@ func TestStripNarration_RemovesNarrationAndParagraphs(t *testing.T) {
|
||||
t.Parallel()
|
||||
in := "<p>你好呀</p>\n<narration>心里有点甜</narration>\n<p>今天天气不错</p>"
|
||||
got := stripNarration(in)
|
||||
// Paragraph markers flattened to newlines; narration block dropped entirely.
|
||||
// 段落标记被抹平为换行;旁白块被整体丢弃。
|
||||
if got != "你好呀\n今天天气不错" {
|
||||
t.Errorf("stripNarration = %q, want %q", got, "你好呀\n今天天气不错")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user