Skip to content

Commit ab93be4

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 8be62f2 + 0eeba3c commit ab93be4

File tree

12 files changed

+145
-435
lines changed

12 files changed

+145
-435
lines changed

backend/template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ template:
6666
其中“y”和“series”必须从SQL查询列中提取。
6767
- 如果答案未知或者与生成JSON无关,则生成的 JSON 格式应为:
6868
{{"type":"error", "reason": "抱歉,我无法回答您的问题。"}}
69+
- JSON中生成的标题需要尽量精简
6970
7071
### 示例:
7172
如果 SQL 为: SELECT products_sales_data.category, AVG(products_sales_data.price) AS average_price FROM products_sales_data GROUP BY products_sales_data.category;

frontend/src/i18n/en.json

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,28 @@
7575
"qa": {
7676
"new_chat": "New Chat",
7777
"start_sqlbot": "Start SQLBot",
78-
"title": "Smart Query",
79-
"placeholder": "Enter your question",
78+
"title": "Smart Data Query",
79+
"placeholder": "Please enter your question",
8080
"ask": "Ask",
8181
"loading": "Loading...",
82-
"no_data": "No Data",
82+
"no_data": "No data available",
8383
"error": "An error occurred, please try again later",
84-
"question_placeholder": "Press Enter to submit, or use Ctrl + Enter for new line",
85-
"greeting": "Hi, I'm SQLBot, nice to serve you",
86-
"hint_description": "I can help query data, generate charts, detect data anomalies, predict data, etc. Please select a data source to start smart querying~",
84+
"question_placeholder": "Press Enter to submit, or use Ctrl + Enter for a new line",
85+
"greeting": "Hello, I'm SQLBot. How can I assist you today?",
86+
"hint_description": "I can query data, generate charts, detect anomalies, predict trends, and more. Please select a data source to begin!",
8787
"select_datasource": "Select Data Source",
8888
"view_more": "View More",
8989
"selected_datasource": "Selected Data Source",
90-
"empty_datasource": "No data source available, please create one first!",
91-
"datasource_not_exist": "Data source does not exist"
90+
"empty_datasource": "No data sources available. Please create one before starting Smart Data Query!",
91+
"datasource_not_exist": "Data source does not exist",
92+
"guess_u_ask": "You might want to ask:",
93+
"continue_to_ask": "Continue asking:",
94+
"data_analysis": "Data Analysis",
95+
"data_predict": "Data Prediction",
96+
"chat_search": "Search",
97+
"thinking": "Thinking",
98+
"thinking_step": "Thought Process",
99+
"ask_again": "Regenerate"
92100
},
93101
"ds": {
94102
"title": "Data Source",
@@ -353,19 +361,27 @@
353361
"no_fields_yet": "No fields yet"
354362
},
355363
"chat": {
364+
"type": "Chart Type",
356365
"chart_type": {
357-
"table": "Table",
358-
"bar": "Bar",
359-
"column": "Column",
360-
"line": "Line",
361-
"pie": "Pie"
366+
"table": "Detail Table",
367+
"bar": "Bar Chart",
368+
"column": "Column Chart",
369+
"line": "Line Chart",
370+
"pie": "Pie Chart"
362371
},
363-
"sql_generation": "SQL Generation",
364-
"chart_generation": "Chart Generation",
365-
"inference_process": "Inference process",
372+
"show_sql": "View SQL",
373+
"export_to": "Export As",
374+
"excel": "Excel",
375+
"picture": "Image",
376+
"add_to_dashboard": "Add to Dashboard",
377+
"full_screen": "Full Screen",
378+
"exit_full_screen": "Exit Full Screen",
379+
"sql_generation": "Generate SQL",
380+
"chart_generation": "Generate Chart",
381+
"inference_process": "Thought Process",
366382
"thinking": "Thinking",
367383
"data_analysis": "Data Analysis",
368-
"data_predict": "Data Predict"
384+
"data_predict": "Data Prediction"
369385
},
370386
"about": {
371387
"title": "About",

frontend/src/i18n/zh-CN.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
"datasource_not_exist": "数据源不存在",
9999
"guess_u_ask": "猜你想问:",
100100
"continue_to_ask": "继续提问:",
101-
"data_analysis": "数据预测",
102-
"data_predict": "数据分析",
101+
"data_analysis": "数据分析",
102+
"data_predict": "数据预测",
103103
"chat_search": "搜索",
104104
"thinking": "思考中",
105105
"thinking_step": "思考过程",

0 commit comments

Comments
 (0)