mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-09-22 04:26:18 +00:00
* feat(channels): complete Buzz frontend copy * feat(channels): add official Buzz provider icon * test(i18n): clarify translation suite scope
25 lines
835 B
TypeScript
25 lines
835 B
TypeScript
import { describe, expect, it } from "@rstest/core";
|
||
|
||
import { loadTranslations } from "@/core/i18n/translations";
|
||
|
||
describe("core copy loading", () => {
|
||
it("loads only the requested overseas and domestic copy", async () => {
|
||
const [english, chinese] = await Promise.all([
|
||
loadTranslations("en-US"),
|
||
loadTranslations("zh-CN"),
|
||
]);
|
||
expect(english.inputBox.disclaimer).toBe(
|
||
"Deerflow is AI and can make mistakes",
|
||
);
|
||
expect(chinese.inputBox.disclaimer).toBe(
|
||
"内容由AI生成,重要信息请务必核查",
|
||
);
|
||
expect(english.channels.descriptions.buzz).toBe(
|
||
"Buzz channels and direct messages through your DeerFlow agent.",
|
||
);
|
||
expect(chinese.channels.descriptions.buzz).toBe(
|
||
"通过 DeerFlow 智能体接收 Buzz 频道消息和私聊。",
|
||
);
|
||
});
|
||
});
|