feat: implement i18n

This commit is contained in:
Henry Li
2026-01-20 14:06:47 +08:00
parent 6ec023de8b
commit 32a45eb043
21 changed files with 455 additions and 69 deletions

View File

@@ -0,0 +1,86 @@
import type { Translations } from "./types";
export const enUS: Translations = {
// Common
common: {
home: "Home",
settings: "Settings",
delete: "Delete",
openInNewWindow: "Open in new window",
close: "Close",
more: "More",
search: "Search",
download: "Download",
thinking: "Thinking",
artifacts: "Artifacts",
},
// Welcome
welcome: {
greeting: "👋 Hello, again!",
description:
"Welcome to 🦌 DeerFlow, an open source super agent. With built-in and custom skills, DeerFlow helps you search on the web, analyze data, and generate artifacts like slides, web pages and do almost anything.",
},
// Clipboard
clipboard: {
copyToClipboard: "Copy to clipboard",
copiedToClipboard: "Copied to clipboard",
failedToCopyToClipboard: "Failed to copy to clipboard",
},
// Input Box
inputBox: {
placeholder: "How can I assist you today?",
thinkingEnabled: "Thinking is enabled",
thinkingDisabled: "Thinking is disabled",
clickToDisableThinking: "Click to disable thinking",
clickToEnableThinking: "Click to enable thinking",
searchModels: "Search models...",
},
// Sidebar
sidebar: {
newChat: "New chat",
chats: "Chats",
recentChats: "Recent chats",
},
// Breadcrumb
breadcrumb: {
workspace: "Workspace",
chats: "Chats",
},
// Workspace
workspace: {
githubTooltip: "DeerFlow on Github",
},
// Conversation
conversation: {
noMessages: "No messages yet",
startConversation: "Start a conversation to see messages here",
},
// Chats
chats: {
searchChats: "Search chats",
},
// Tool calls
toolCalls: {
moreSteps: (count: number) => `${count} more step${count === 1 ? "" : "s"}`,
lessSteps: "Less steps",
executeCommand: "Execute command",
presentFiles: "Present files",
needYourHelp: "Need your help",
useTool: (toolName: string) => `Use "${toolName}" tool`,
searchForRelatedInfo: "Search for related information",
searchOnWebFor: (query: string) => `Search on the web for "${query}"`,
viewWebPage: "View web page",
listFolder: "List folder",
readFile: "Read file",
writeFile: "Write file",
},
};