infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
18.18k stars 1.84k forks source link

Add Multi-Language Descriptions for 'Switch' Component and Update Message Assistant Placeholder #2450

Closed Defozo closed 1 week ago

Defozo commented 1 week ago

What problem does this PR solve?

This PR addresses the need to describe the "Switch" component across different languages and corrects a misleading description for a placeholder message not exclusively tied to a specific assistant type. By providing clearer and more accurate descriptions, this PR aims to improve user understanding and usability of the Switch component and the "Message Resume Assistant..." placeholder in a multilingual context.

Explanation of Changes

  1. Added Descriptions for "Switch" Component:

    • Descriptions were added for the "Switch" component in three different locales:
      • English (EN): Provides a concise description of what the "Switch" component does, focusing on its ability to evaluate conditions and direct the flow of execution.
      • Simplified Chinese (ZH): Translated the English description into Simplified Chinese to cater to users who prefer this locale.
      • Traditional Chinese (ZH-Traditional): Added a Traditional Chinese version of the description to support users in regions that use Traditional Chinese.
  2. Corrected "Message Resume Assistant..." to "Message the Assistant...":

    • Updated the description from "Message Resume Assistant..." to "Message the Assistant..." in the English locale. This correction makes the description more generic and accurate, reflecting the placeholder's broader functionality, which is not limited to Resume Assistants. It now clearly communicates that the placeholder can be used with various types of assistants, not just those related to resumes.

Type of change