# ling-space/i18n/tab_smart_writer.py ui_translations = { # Tab Name (used in app.py) "writer_tab_title": {"en": "Writing Assistant", "zh": "写作助手"}, # Left Column: Entity Console "writer_style_input_label": { "en": "Overall Story and Style", "zh": "整体故事和风格", }, "writer_kb_accordion_label": {"en": "Writing Knowledge Base", "zh": "写作知识库"}, "writer_kb_dataframe_headers": { "en": ["Name", "Description"], "zh": ["名称", "说明"], }, "writer_suggest_kb_button": {"en": "🔍 Extract New Terms", "zh": "🔍 提取新词条"}, "writer_suggested_kb_label": {"en": "Recommended Terms", "zh": "推荐词条"}, "writer_short_outline_accordion_label": { "en": "Current Chapter Outline", "zh": "当前章节大纲", }, "writer_short_outline_dataframe_headers": { "en": ["Done", "Task"], "zh": ["完成", "任务"], }, "writer_sync_outline_button": {"en": "🔄 Sync Status", "zh": "🔄 同步状态"}, "writer_long_outline_accordion_label": { "en": "Overall Story Outline", "zh": "故事整体大纲", }, # Right Column: Writing Canvas # Area 1: Real-time Continuation (Flow) "writer_flow_suggestion_label": { "en": "Real-time Continuation", "zh": "实时续写建议", }, "writer_flow_suggestion_placeholder": { "en": "(Waiting for input or click 'Try another'...)", "zh": "(等待输入或点击“换一个”...)", }, "writer_accept_flow_button": {"en": "Accept (Tab)", "zh": "采纳续写 (Tab)"}, "writer_change_flow_button": { "en": "Try another (Shift+Tab)", "zh": "换一个 (Shift+Tab)", }, "writer_debounce_loading_text": { "en": "Generating suggestion...", "zh": "稍后开始续写", }, # Area 2: Paragraph Continuation (Inspiration) "writer_inspiration_prompt_label": {"en": "Continuation Prompt", "zh": "续写提示"}, "writer_inspiration_prompt_placeholder": { "en": "e.g., write a paragraph about...", "zh": "例如:写一段关于...的描写", }, "writer_prompt_suggestions_label": { "en": "Recommended Prompts (Click to fill)", "zh": "推荐提示 (点击填入)", }, "writer_refresh_suggestions_button": { "en": "🎲 New Suggestions", "zh": "🎲 换一批建议", }, "writer_generate_para_button": { "en": "Continue Paragraph (Cmd+Enter)", "zh": "整段续写 (Cmd+Enter)", }, "writer_change_para_button": {"en": "Try another", "zh": "换一个"}, "writer_accept_para_button": {"en": "Accept", "zh": "采纳"}, "writer_para_suggestion_placeholder": { "en": "(Click 'Continue Paragraph' to generate content...)", "zh": "(点击“整段续写”生成内容...)", }, # Area 3: Adjust/Polish "writer_polish_title": {"en": "#### 🛠️ Adjust & Polish", "zh": "#### 🛠️ 调整润色"}, "writer_coming_soon": {"en": "(Coming Soon)", "zh": "(敬请期待)"}, # Editor & Stats "writer_editor_label": {"en": "Immersive Writing Canvas", "zh": "沉浸写作画布"}, "writer_editor_placeholder": { "en": "Start your creation...", "zh": "开始你的创作...", }, "writer_stats_words": {"en": "Words", "zh": "字"}, "writer_stats_mins": {"en": "mins", "zh": "分钟"}, "writer_stats_format": { "en": "{words} Words | ~{read_time} mins", "zh": "{words} 字 | 约 {read_time} 分钟", }, "writer_stats_default": {"en": "0 Words | 0 mins", "zh": "0 字 | 0 分钟"}, } prompt_fragments = {}