feat(System): Language switch, supports Traditional Chinese.

This commit is contained in:
dataeaseShu
2026-04-15 11:16:21 +08:00
committed by dataeaseShu
parent 559c80c5b9
commit b5eb2edb44
6 changed files with 975 additions and 1 deletions
@@ -34,6 +34,7 @@ const userStore = useUserStore()
const languageOptions = computed(() => [
{ value: 'en', label: t('common.english') },
{ value: 'zh-CN', label: t('common.simplified_chinese') },
{ value: 'zh-TW', label: t('common.traditional_chinese') },
{ value: 'ko-KR', label: t('common.korean') },
])
@@ -58,6 +58,10 @@ const languageList = computed(() => [
name: '简体中文',
value: 'zh-CN',
},
{
name: '繁體中文',
value: 'zh-TW',
},
{
name: '한국인',
value: 'ko-KR',
+7
View File
@@ -1,9 +1,11 @@
import { createI18n } from 'vue-i18n'
import en from './en.json'
import zhCN from './zh-CN.json'
import zhTw from './zh-TW.json'
import koKR from './ko-KR.json'
import elementEnLocale from 'element-plus-secondary/es/locale/lang/en'
import elementZhLocale from 'element-plus-secondary/es/locale/lang/zh-cn'
import elementTwLocale from 'element-plus-secondary/es/locale/lang/zh-tw'
import { useCache } from '@/utils/useCache'
import { getBrowserLocale } from '@/utils/utils'
@@ -23,6 +25,10 @@ const messages = {
...zhCN,
el: elementZhLocale,
},
'zh-TW': {
...zhTw,
el: elementTwLocale,
},
'ko-KR': {
...koKR,
el: elementKoLocale,
@@ -40,6 +46,7 @@ export const i18n = createI18n({
const elementLocales = {
en: elementEnLocale,
'zh-CN': elementZhLocale,
'zh-TW': elementTwLocale,
'ko-KR': elementKoLocale,
} as const
+957
View File
@@ -0,0 +1,957 @@
{
"menu": {
"add_interface_credentials": "請新增介面憑證",
"Data Q&A": "智慧問數",
"Data Connections": "資料來源",
"Dashboard": "儀表板",
"AI Model Configuration": "模型配置",
"Details": "詳情"
},
"variables": {
"please_select_date": "請選擇日期",
"number_variable_error": "請輸入正確的數值範圍",
"built_in": "已內建",
"normal_value": "一般值",
"​​cannot_be_empty": "變數值不能為空",
"1_to_100": "{name}數值範圍 {min}~{max}",
"1_to_100_de": "{name}日期範圍 {min}~{max}",
"system_variables": "系統變數",
"variables": "變數",
"system": "系統",
"search_variables": "搜尋變數",
"add_variable": "新增變數",
"variable_name": "變數名稱",
"variable_type": "變數類型",
"variable_value": "變數值",
"edit_variable": "編輯變數",
"no_variables_yet": "暫無變數",
"please_enter_value": "請輸入數值",
"date": "日期",
"start_date": "開始日期",
"end_date": "結束日期",
"enter_variable_name": "請輸入變數名稱",
"enter_variable_value": "請輸入變數值"
},
"sync": {
"records": "顯示 {num} 筆資料,共 {total} 筆",
"confirm_upload": "確定上傳",
"field_details": "欄位詳情",
"integration": "需開啟平台對接",
"the_existing_user": "若使用者已存在,覆蓋舊使用者",
"sync_users": "同步使用者",
"sync_wechat_users": "同步企業微信使用者",
"sync_dingtalk_users": "同步釘釘使用者",
"sync_lark_users": "同步飛書使用者",
"sync_complete": "同步完成",
"synced_10_users": "成功同步 {num} 個使用者",
"failed_3_users": "成功同步 {success} 個使用者,同步失敗 {failed} 個使用者,",
"download_failure_list": "下載失敗列表",
"sync_failed": "同步失敗",
"failed_10_users": "同步失敗 {num} 個使用者,",
"continue_syncing": "繼續同步",
"return_to_view": "返回查看"
},
"parameter": {
"execution_details": "執行詳情",
"overview": "概覽",
"tokens_required": "消耗 Tokens",
"time_execution": "耗時",
"export_notes": "匯出備註",
"import_notes": "匯入備註",
"memo": "備註更新規則:根據表名和欄位名稱匹配,如果匹配則更新表備註和欄位備註;如果匹配不上,備註保持不變。",
"parameter_configuration": "參數配置",
"question_count_settings": "問數設定",
"context_record_count": "上下文記錄數",
"context_record_count_hint": "使用者提問輪數",
"model_thinking_process": "展開模型思考過程",
"rows_of_data": "限制 1000 列資料",
"third_party_platform_settings": "登入認證設定",
"by_third_party_platform": "自動建立使用者",
"platform_user_organization": "預設工作區",
"platform_user_roles": "第三方平台使用者角色",
"excessive_data_volume": "關閉1000列的資料限制後,資料量過大,可能會造成系統卡頓",
"prompt": "提示",
"disabling_successfully": "關閉成功",
"closed_by_default": "在問數視窗中,控制模型思考過程預設展開或者關閉",
"and_platform_integration": "登入認證相關",
"login_settings": "登入設定",
"default_login": "預設登入方式"
},
"prompt": {
"default_password": "預設密碼:{msg}",
"no_sql_sample": "暫無 SQL 範例",
"add_sql_sample": "新增 SQL 範例",
"no_prompt_words": "暫無提示詞",
"customize_prompt_words": "自訂提示詞",
"ask_sql": "問數 SQL",
"data_analysis": "資料分析",
"data_prediction": "資料預測",
"add_prompt_word": "新增提示詞",
"prompt_word_name": "提示詞名稱",
"prompt_word_content": "提示詞內容",
"training_data_details": "訓練資料詳情",
"selected_prompt_words": "是否刪除選中的 {msg} 筆提示詞?",
"replaced_with": "請輸入提示詞,範例:回傳姓名時,只顯示姓氏,名字用*代替",
"loss_exercise_caution": "若輸入刪除資料庫、資料表或修改表結構等高風險的操作指令,可能導致資料永久遺失,請務必謹慎!",
"edit_prompt_word": "編輯提示詞",
"all_236_terms": "是否匯出全部 {msg} 筆{type}提示詞?",
"export_hint": "是否匯出全部{type}提示詞?",
"prompt_word_name_de": "是否刪除提示詞:{msg}?",
"disable_field": "停用欄位",
"to_disable_it": "該欄位已配置表關聯關係,若停用後,關聯關係將失效,確定停用?"
},
"training": {
"effective_data_sources": "生效資料來源",
"all_data_sources": "所有資料來源",
"partial_data_sources": "部分資料來源",
"add_it_here": "拖曳左側表名,新增到這裡",
"table_relationship_management": "表關係管理",
"system_management": "系統管理",
"data_training": "SQL 範例庫",
"problem_description": "問題描述",
"sample_sql": "範例 SQL",
"search_problem": "搜尋問題",
"add_training_data": "新增範例 SQL",
"training_data_details": "範例 SQL 詳情",
"training_data_items": "是否刪除選中的 {msg} 筆範例 SQL?",
"sql_statement": "SQL 語句",
"edit_training_data": "編輯範例 SQL",
"all_236_terms": "是否匯出全部 {msg} 筆範例 SQL?",
"export_hint": "是否匯出全部範例 SQL?",
"sales_this_year": "是否刪除範例 SQL:{msg}?",
"upload_success": "匯入成功",
"upload_failed": "匯入成功 {success} 筆,失敗 {fail} 筆,失敗資訊詳見:{fail_info}"
},
"professional": {
"cannot_be_repeated": "術語名稱,同義詞不能重複",
"code_for_debugging": "複製以下程式碼進行除錯",
"full_screen_mode": "全螢幕模式",
"editing_terminology": "編輯術語",
"professional_terminology": "術語配置",
"term_name": "術語名稱",
"term_description": "術語描述",
"search_term": "搜尋術語",
"no_term": "暫無術語",
"create_new_term": "新建術語",
"export_all": "全部匯出",
"professional_term_details": "專業術語詳情",
"business_term": "業務術語",
"synonyms": "同義詞",
"all_236_terms": "是否匯出全部 {msg} 筆術語?",
"export_hint": "是否匯出全部術語?",
"export": "匯出",
"selected_2_terms": "是否刪除選中的 {msg} 筆術語?",
"selected_2_terms_de": "是否匯出選中的 {msg} 筆術語?",
"the_term_gmv": "是否刪除術語:{msg}?"
},
"common": {
"start_time": "開始時間",
"end_time": "結束時間",
"require": "必填",
"zoom_in": "放大",
"zoom_out": "縮小",
"the_default_model": "已是預設模型",
"as_default_model": "設為預設模型",
"no_model_yet": "暫無模型",
"intelligent_questioning_platform": "歡迎使用 SQLBot 智慧問數平台",
"login": "帳號登入",
"login_": "登入",
"confirm2": "確定",
"excessive_tables_selected": "選擇資料表過量",
"to_continue_saving": "選擇的資料表數量為:{msg},已超出30,可能會導致操作逾時或者無回應,是否繼續儲存?",
"proceed_with_caution": "刪除後無法復原,請謹慎操作。",
"sales_in_2024": "是否刪除對話:{msg}?",
"limited_to_30": "資料表數量限制30",
"enter_your_password": "請輸入密碼",
"your_account_email_address": "請輸入帳號/郵箱",
"the_correct_password": "請輸入正確的密碼",
"input_content": "請輸入內容",
"may_not_exist": "暫無結果,使用者可能不存在",
"empty": "",
"back": "返回",
"confirm": "確認",
"cancel": "取消",
"search": "查詢",
"system_manage": "系統管理",
"update_success": "更新成功",
"save_success": "儲存成功",
"next": "下一步",
"save": "儲存",
"logout": "登出",
"please_input": "請輸入{msg}",
"switch_success": "切換成功",
"result_count": "個結果",
"clear_filter": "清空條件",
"reset": "重設",
"simplified_chinese": "簡體中文",
"korean": "한국어",
"traditional_chinese": "繁體中文",
"help": "說明",
"language": "語言",
"english": "English",
"re_upload": "重新上傳",
"not_exceed_50mb": "支援 XLS、XLSX、CSV 格式,檔案大小不超過 50MB",
"excel_file_type_limit": "僅支援 XLS、XLSX 格式",
"click_to_select_file": "點擊選擇檔案",
"upload_hint_first": "先",
"upload_hint_download_template": "下載範本",
"upload_hint_end": ",按要求填寫後上傳。",
"continue_to_upload": "繼續匯入",
"reset_password": "重設密碼",
"password_reset_successful": "重設密碼成功",
"or": "或者",
"refresh": "重新整理",
"input_limit": "長度在 {0} 到 {1} 個字元",
"file_size_limit_error": "檔案大小超出限制(最大{limit})"
},
"dashboard": {
"open_dashboard": "開啟儀表板",
"add_dashboard_name_tips": "請輸入儀表板名稱",
"existing_dashboard": "存量儀表板",
"add_success": "新增成功",
"no_data": "沒有找到相關內容",
"new_tab": "新建Tab",
"length_limit64": "欄位長度需要在1-64之間",
"sort_column": "排序欄位",
"sort_type": "排序方式",
"time": "時間",
"sort_asc": "升序",
"sort_desc": "降序",
"name_repeat": "儀表板名稱已被使用",
"rich_text_tips": "雙擊輸入文字內容",
"exit_preview": "退出預覽",
"no_chat": "暫無對話",
"today": "今日",
"this_week": "本週",
"earlier": "更早",
"add_component_tips": "從頂部工具列中選擇元件,新增到這裡建立儀表板",
"add_view": "新增圖表",
"delete_dashboard_warn": "是否刪除儀表板:{0}",
"rename_dashboard": "重新命名儀表板",
"dashboard_name": "儀表板名稱",
"select_dashboard_tips": "請在左側選擇儀表板",
"no_dashboard": "暫無儀表板",
"no_dashboard_info": "暫無內容,點擊下列按鈕進行新增",
"search": "搜尋",
"time_asc": "按時間升序",
"time_desc": "按時間降序",
"name_asc": "按名稱升序",
"name_desc": "按名稱降序",
"select_dashboard": "請選擇儀表板",
"name": "名稱",
"view": "圖表",
"text": "富文字",
"preview": "預覽",
"creator": "建立人",
"dashboard_id": "儀表板ID",
"create_time": "建立時間",
"updater": "更新人",
"update_time": "更新時間",
"edit": "編輯",
"edit_title": "編輯標題",
"length_1_64_characters": "名稱欄位長度1-64個字元",
"rename": "重新命名",
"delete": "刪除",
"delete_tips": "刪除後,此目錄的所有資源都會被刪除,請謹慎操作。",
"undo": "復原",
"reduction": "復原",
"folder": "目錄",
"dashboard": "儀表板",
"delete_warning": "確定要刪除嗎?",
"delete_resource_warn": "確定刪除該{0}嗎?",
"delete_success": "刪除成功",
"new_folder": "新建目錄",
"new_dashboard": "新建儀表板",
"add_chart": "新增圖表",
"chart_selected": "已選{0}"
},
"qa": {
"retrieve_error": "暫無內容",
"retrieve_again": "重新取得",
"recently": "最近",
"recommend": "推薦",
"quick_question": "快捷提問",
"new_chat": "新建對話",
"start_sqlbot": "開啟問數",
"title": "智慧問數",
"placeholder": "請輸入您的問題",
"ask": "提問",
"loading": "載入中...",
"no_data": "暫無資料",
"error": "發生錯誤,請稍後再試",
"question_placeholder": "按下 Enter 提交問題, 或使用 Ctrl + Enter 換行",
"greeting": "你好,我是SQLBot,很高興為你服務",
"hint_description": "我可以查詢資料、產生圖表、分析資料、預測資料等,請選擇一個資料來源,開啟智慧問數吧~",
"select_datasource": "選擇資料來源",
"view_more": "查看更多",
"selected_datasource": "已選擇資料來源",
"empty_datasource": "資料來源為空,請新建後再開啟智慧問數!",
"datasource_not_exist": "資料來源不存在",
"guess_u_ask": "猜你想問:",
"continue_to_ask": "繼續提問:",
"data_analysis": "資料分析",
"data_predict": "資料預測",
"data_regenerated": "重新產生",
"chat_search": "搜尋",
"thinking": "思考中",
"thinking_step": "思考過程",
"ask_again": "重新產生",
"today": "今天",
"week": "7天內",
"earlier": "更早以前",
"no_time": "沒有時間",
"rename_conversation_title": "重新命名對話標題",
"conversation_title": "對話標題",
"copied": "已複製",
"ask_failed": "問數失敗"
},
"ds": {
"title": "資料來源",
"local_excelcsv": "本機 Excel/CSV",
"add": "新增資料來源",
"delete": "刪除資料來源",
"name": "資料來源名稱",
"type": "資料來源類型",
"status": "狀態",
"pieces_in_total": "顯示 {ms} 筆資料",
"actions": "操作",
"test_connection": "測試連線",
"check": "驗證",
"connection_success": "連線成功",
"connection_failed": "連線失敗,請檢查配置",
"Search Datasource": "搜尋資料來源",
"tables": "資料表",
"no_data_tip": "暫無資料,請從左側選擇資料表",
"comment": "註解",
"table_schema": "表結構",
"previous": "上一步",
"preview": "資料預覽",
"preview_tip": "預覽100筆資料",
"field": {
"name": "欄位名",
"type": "類型",
"comment": "註解",
"custom_comment": "自訂註解",
"status": "狀態"
},
"edit": {
"table_comment": "編輯表註解",
"field_comment": "編輯欄位註解",
"table_comment_label": "表註解",
"field_comment_label": "欄位註解"
},
"form": {
"title": {
"add": "新增資料來源",
"edit": "編輯資料來源",
"choose_tables": "選擇資料表"
},
"base_info": "基本資訊",
"choose_tables": "選擇資料表",
"name": "名稱",
"description": "描述",
"host": "主機名/IP位址",
"port": "連接埠",
"username": "使用者名稱",
"password": "密碼",
"database": "資料庫",
"connect_mode": "連線方式",
"service_name": "服務名",
"extra_jdbc": "額外的資料庫連線配置",
"schema": "模式",
"get_schema": "取得模式",
"file": "檔案",
"upload_tip": "僅支援 .xls, .xlsx, .csv 格式,大小不超過50MB",
"version_tip": {
"sqlServer": "支援版本: 2012+",
"oracle": "支援版本: 12+",
"mysql": "支援版本: 5.6+",
"pg": "支援版本: 9.6+"
},
"selected": "已選擇: {0}/{1}",
"validate": {
"name_required": "請輸入名稱",
"name_length": "長度應在1到50個字元之間",
"type_required": "請選擇資料庫類型",
"host_required": "請輸入主機位址",
"port_required": "請輸入連接埠號",
"database_required": "請輸入資料庫名",
"mode_required": "請選擇連線方式",
"schema_required": "請輸入模式名"
},
"mode": {
"sid": "SID",
"service_name": "服務名"
},
"support_version": "支援版本",
"upload": {
"button": "上傳",
"tip": "僅支援 .xls, .xlsx, .csv 格式,檔案小於 50MB."
},
"connect": {
"success": "連線成功",
"failed": "連線失敗"
},
"timeout": "連線逾時(秒)",
"address": "位址",
"low_version": "相容低版本",
"ssl": "啟用 SSL"
},
"sync_fields": "同步表結構"
},
"datasource": {
"recommended_question": "推薦問題",
"recommended_repetitive_tips": "存在重複問題",
"recommended_problem_tips": "自訂配置至少一個問題,每個問題2-200個字元",
"recommended_problem_configuration": "推薦問題配置",
"problem_generation_method": "問題產生方式",
"ai_automatic_generation": "AI 自動產生",
"user_defined": "使用者自訂",
"question_tips": "請輸入推薦問題",
"add_question": "新增問題",
"data_source_yet": "暫無資料來源",
"search_by_name": "透過名稱搜尋",
"search": "搜尋",
"all_types": "全部類型",
"new_data_source": "新建資料來源",
"open_query": "開啟問數",
"edit": "編輯",
"source_connection_failed": "資料來源連線失敗",
"confirm": "確定",
"copy": "複製",
"the_original_one": "確認恢復為初始密碼嗎?",
"incorrect_email_format": "郵箱格式不對",
"enabled_status": "啟用狀態",
"custom_notes": "自訂備註",
"field_type": "欄位類型",
"field_name": "欄位名稱",
"relevant_content_found": "沒有找到相關內容",
"please_enter": "請輸入",
"Please_select": "請選擇",
"table_notes": "表備註",
"field_notes": "欄位備註",
"select_all": "全選",
"mysql_data_source": "修改 {msg} 資料來源",
"configuration_information": "配置資訊",
"data_source": "是否刪除資料來源:{msg}?",
"operate_with_caution": "被刪除後,將無法對該資料來源進行智慧問數,請謹慎操作。",
"data_source_de": "無法刪除資料來源:{msg}",
"cannot_be_deleted": "儀表板的圖表使用了該資料來源,不可刪除。",
"got_it": "知道了",
"field_original_notes": "欄位原始備註",
"field_notes_1": "欄位備註",
"no_table": "暫無資料表",
"go_add": "去新增",
"get_schema": "取得Schema"
},
"model": {
"int": "整數",
"float": "小數",
"string": "字串",
"default_model": "預設模型",
"model_type": "模型類型",
"basic_model": "基礎模型",
"set_successfully": "設定成功",
"operate_with_caution": "系統預設模型被取代後,智慧問數的結果將會受到影響,請謹慎操作。",
"system_default_model": "是否設定 {msg} 為系統預設模型?",
"ai_model_configuration": "AI 模型配置",
"system_default_model_de": "系統預設模型",
"relevant_results_found": "沒有找到相關結果",
"add_model": "新增模型",
"select_supplier": "選擇供應商",
"the_basic_model": "請給基礎模型設定一個名稱",
"the_basic_model_de": "請選擇基礎模型",
"length_max_error": "{msg}長度不能超過{max}個字元",
"model_name": "模型名稱",
"custom_model_name": "自訂的模型名稱",
"enter_to_add": "清單中未列出的模型,直接輸入模型名稱,Enter 即可新增",
"api_domain_name": "API 網域",
"advanced_settings": "進階設定",
"model_parameters": "模型參數",
"add": "新增",
"parameters": "參數",
"display_name": "顯示名稱",
"parameter_value": "參數值",
"text": "文字",
"number": "數值",
"parameter_type": "參數類型",
"verification_successful": "驗證成功",
"del_default_tip": "無法刪除模型: {msg}",
"del_default_warn": "該模型為系統預設模型,請先設定其他模型為系統預設模型,再刪除此模型。",
"del_warn_tip": "是否刪除模型: {msg}?",
"check_failed": "模型無效【{msg}】",
"default_miss": "尚未設定預設大語言模型,因此無法開啟問數,請聯繫管理員設定。",
"default_miss_admin": "尚未設定預設大語言模型,因此無法開啟問數。",
"to_config": "去設定"
},
"user": {
"workspace": "工作區",
"creation_time": "建立時間",
"user_source": "使用者來源",
"phone_number": "手機號",
"email": "郵箱",
"user_status": "使用者狀態",
"account": "帳號",
"name": "姓名",
"selected_2_items": "已選 {msg} 筆",
"name_account_email": "搜尋姓名、帳號、郵箱",
"user_management": "使用者管理",
"filter": "篩選",
"batch_import": "批次匯入",
"add_users": "新增使用者",
"selected_2_users": "是否刪除選中的 {msg} 個使用者?",
"filter_conditions": "篩選條件",
"enable": "啟用",
"disable": "停用",
"local_creation": "本機建立",
"lark": "飛書",
"larksuite": "國際飛書",
"dingtalk": "釘釘",
"wecom": "企業微信",
"1240_results": "{msg} 個結果 ",
"clear_conditions": "清空條件",
"disabled": "已停用",
"enabled": "已啟用",
"edit_user": "編輯使用者",
"del_user": "是否刪除使用者: {msg}?",
"del_key": "是否刪除key: {msg}?",
"please_first": "請先",
"download_the_template": "下載範本",
"required_and_upload": ",按要求填寫後上傳",
"file": "檔案",
"upload_file": "上傳檔案",
"xls_format_files": "僅支援xlsx、xls格式的檔案",
"import": "匯入",
"change_file": "更換檔案",
"data_import_completed": "資料匯入完成",
"notes_import_completed": "備註匯入完成",
"imported_100_data": "成功匯入資料 {msg} 筆",
"return_to_view": "返回查看",
"continue_importing": "繼續匯入",
"import_20_can": "成功匯入資料 {msg} 筆,匯入失敗 {loss} 筆,可 ",
"download_error_report": "下載錯誤報告",
"modify_and_re_import": ",修改後重新匯入",
"data_import_failed": "資料匯入失敗",
"failed_100_can": "匯入失敗 {msg} 筆,可",
"change_password": "修改密碼",
"new_password": "新密碼",
"confirm_password": "確認密碼",
"old_password": "舊密碼",
"title": "使用者管理",
"upgrade_pwd": {
"title": "修改密碼",
"old_pwd": "舊密碼",
"new_pwd": "新密碼",
"confirm_pwd": "確認密碼",
"two_pwd_not_match": "兩次輸入的密碼不一致",
"pwd_format_error": "8-20位且至少一位大寫字母、小寫字母、數字、特殊字元"
}
},
"workspace": {
"relevant_content_found": "找不到相關內容",
"add_workspace": "新增工作區",
"administrator": "管理員",
"ordinary_member": "一般成員",
"people": "人",
"name_username_email": "搜尋姓名、使用者名稱、郵箱",
"add_member": "新增成員",
"member_type": "成員類型",
"workspace_name": "工作區名稱",
"no_user": "暫無使用者",
"remove": "移除",
"selected_2_members": "是否移除選中的 {msg} 個成員?",
"removed_successfully": "移除成功",
"workspace_de_workspace": "是否刪除工作區:{msg}?",
"member_feng_yibudao": "是否移除成員:{msg}?",
"select_member": "選擇成員",
"selected_2_people": "已選:{msg} 人",
"clear": "清空",
"historical_dialogue": "暫無歷史對話",
"rename_a_workspace": "重新命名工作區",
"return_to_workspace": "返回工作區",
"there_are": "有 ",
"2_dashboards": "{msg} 個儀表板",
"smart_data_centers": "{msg} 個智慧問數",
"confirm_to_delete": "資料來源刪除後,相關的問數不可繼續提問,儀表板中的圖表無法正常顯示,請謹慎操作!",
"id_account_to_add": "搜尋使用者名稱/帳號新增",
"find_user": "尋找使用者",
"add_successfully": "新增成功",
"member_management": "成員管理",
"permission_configuration": "權限配置",
"set": "設定",
"operate_with_caution": "刪除後,該工作區下的使用者將被移除,所有資源也將被刪除,請謹慎操作。"
},
"permission": {
"search_field": "搜尋欄位",
"search_rule_group": "搜尋規則組",
"add_rule_group": "新增規則組",
"permission_rule": "權限規則",
"restricted_user": "受限使用者",
"set_rule": "設定規則",
"set_user": "設定使用者",
"2": "{msg} 個",
"238_people": "{msg} 人",
"no_permission_rule": "暫無權限規則",
"set_permission_rule": "設定權限規則",
"basic_information": "基本資訊",
"rule_group_name": "規則組名稱",
"rule_name": "規則名稱",
"type": "類型",
"data_source": "資料來源",
"data_table": "資料表",
"select_restricted_user": "選擇受限使用者",
"rule_group_1": "是否刪除規則組:{msg}?",
"no_rule": "暫無規則",
"row_permission": "列權限",
"column_permission": "欄位權限",
"rule_rule_1": "是否刪除規則:{msg}?",
"no_content": "暫無內容",
"edit_column_permission": "編輯欄位權限",
"edit_row_permission": "編輯列權限",
"add_column_permission": "新增欄位權限",
"add_row_permission": "新增列權限",
"no_fields_yet": "暫無欄位",
"filter_eq": "等於",
"filter_not_eq": "不等於",
"filter_lt": "小於",
"filter_le": "小於等於",
"filter_gt": "大於",
"filter_ge": "大於等於",
"filter_null": "為空",
"filter_not_null": "不為空",
"filter_empty": "空字串",
"filter_not_empty": "非空字串",
"filter_include": "包含",
"filter_not_include": "不包含",
"conditional_filtering": "條件篩選",
"add_conditions": "新增條件",
"add_relationships": "新增關係",
"cannot_be_empty_": "過濾欄位不能為空",
"cannot_be_empty_de_ruler": "規則條件不能為空",
"filter_value_can_null": "過濾值不能為空",
"filter_like": "包含",
"filter_not_like": "不包含",
"filter_in": "屬於",
"filter_not_in": "不屬於",
"enter_a_question": "請輸入問題",
"new_conversation": "新對話",
"send": "傳送",
"stop_replying": "停止回覆",
"i_am_sqlbot": "你好,我是SQLBot",
"predict_data_etc": "我可以查詢資料、產生圖表、分析資料、預測資料等。",
"intelligent_data_query": "趕快開啟智慧問數吧~"
},
"embedded": {
"delete_10_apps": "是否刪除 {msg} 個應用?",
"click_to_show": "點擊顯示",
"click_to_hide": "點擊隱藏",
"your_app_secret": "確定更新 APP Secret 嗎?",
"proceed_with_caution": "重設後現有的 App Secret 將會失效,請謹慎操作。",
"password_length": "密碼長度",
"edit_app": "編輯應用",
"embedded_management": "嵌入式管理",
"embedded_assistant": "小助手嵌入",
"embedded_page": "頁面嵌入",
"no_application": "暫無應用",
"create_application": "建立應用",
"basic_application": "基礎應用",
"advanced_application": "進階應用",
"embed_third_party": "嵌入第三方",
"support_is_required": "適用於無需資料驗證的場景,只需將嵌入式程式碼內嵌到第三方的程式碼中,無需做額外的支援",
"data_permissions_etc": "適用於需要資料驗證的場景,需要第三方系統提供資料來源介面、使用者介面資料權限等",
"create_basic_application": "建立基礎應用",
"set_data_source": "設定資料來源",
"basic_information": "基本資訊",
"application_name": "應用名稱",
"application_description": "應用描述",
"cross_domain_settings": "跨網域設定",
"third_party_address": "請輸入嵌入的第三方位址,多個以分號分割",
"set_to_private": "設為私有",
"set_to_public": "設為公共",
"public": "公共",
"private": "私有",
"configure_interface": "配置介面",
"interface_url": "介面 URL",
"format_is_incorrect": "格式不對{msg}",
"domain_format_incorrect": ",http或https開頭,不能以 / 結尾,多個網域名稱以分號(半形)分隔",
"interface_url_incorrect": ",請填寫相對路徑,以/開頭,或者絕對路徑以http或https開頭",
"aes_enable": "開啟 AES 加密",
"aes_enable_tips": "加密欄位 (host, user, password, dataBase, schema) 均採用 AES-CBC-PKCS5Padding 加密方式",
"bit": "位",
"creating_advanced_applications": "建立進階應用",
"credential_acquisition_method": "憑證取得方式",
"table_notes": "表備註",
"system_credential_type": "來源系統憑證類型",
"credential_name": "憑證名稱",
"target_credential_location": "目標憑證位置",
"target_credential_name": "目標憑證名稱",
"target_credential": "目標憑證",
"edit_advanced_applications": "編輯進階應用",
"edit_basic_applications": "編輯基礎應用",
"delete": "是否刪除: {msg}?",
"code_to_embed": "複製以下程式碼進行嵌入",
"floating_window_mode": "浮窗模式",
"copy_successful": "複製成功",
"copy_failed": "複製失敗",
"open_the_query": "公共的資料來源,允許所有使用者開啟問數;私有資料來源,登入狀態的使用者可以開啟問數",
"add_interface_credentials": "新增介面憑證",
"edit_interface_credentials": "編輯介面憑證",
"duplicate_name": "重複名稱",
"duplicate_name_": "重複姓名",
"duplicate_account": "重複帳號",
"duplicate_email": "重複郵箱",
"repeating_parameters": "重複參數",
"interface_credentials": "介面憑證",
"no_credentials_yet": "暫無憑證",
"intelligent_customer_service": "SQLBot 智慧客服",
"enter_a_question": "請輸入問題",
"new_conversation": "新建對話",
"send": "傳送",
"stop_replying": "停止回答",
"i_am_sqlbot": "你好,我是 SQLBot",
"predict_data_etc": "我可以查詢資料、產生圖表、檢測資料異常、預測資料等",
"intelligent_data_query": "趕快開啟智慧問數吧~",
"origin_format_error": "格式錯誤,http或https開頭,不能以 / 結尾",
"display_settings": "顯示設定",
"header_text_color": "頭部文字顏色",
"app_logo": "應用 Logo",
"maximum_size_10mb": "建議尺寸 32 x 32,支援 JPG、PNG、SVG,大小不超過 10MB",
"replace": "取代",
"default_icon_position": "圖示預設位置",
"draggable_position": "可拖曳位置",
"up": "上",
"down": "下",
"left": "左",
"right": "右",
"welcome_description": "歡迎語描述",
"data_analysis_now": "我可以查詢資料、產生圖表、檢測資料異常、預測資料等趕快開啟智慧問數吧~",
"window_entrance_icon": "浮窗入口圖示",
"preview_error": "目前頁面禁止使用 Iframe 嵌入!",
"assistant_app": "小助手應用",
"auto_select_ds": "自動選擇資料來源"
},
"chat": {
"type": "圖表類型",
"chart_type": {
"table": "明細表",
"bar": "橫條圖",
"column": "柱狀圖",
"line": "折線圖",
"pie": "圓餅圖"
},
"hide_label": "隱藏標籤",
"show_label": "顯示標籤",
"sort_asc": "升序",
"sort_desc": "降序",
"sort_none": "不排序",
"show_sql": "檢視SQL",
"export_to": "匯出為",
"excel": "Excel",
"picture": "圖片",
"add_to_dashboard": "新增到儀表板",
"full_screen": "全螢幕",
"exit_full_screen": "退出全螢幕",
"sql_generation": "產生SQL",
"chart_generation": "產生圖表",
"inference_process": "思考過程",
"thinking": "思考中",
"data_analysis": "資料分析",
"data_predict": "資料預測",
"data_over_limit": "資料量過大,僅展示前{0}筆資料",
"ds_is_invalid": "資料來源無效",
"error": "錯誤",
"exec-sql-err": "執行SQL失敗",
"no_data": "暫無資料",
"loading_data": "載入中...",
"show_error_detail": "檢視具體資訊",
"log": {
"GENERATE_SQL": "產生 SQL",
"GENERATE_CHART": "產生圖表結構",
"ANALYSIS": "分析",
"PREDICT_DATA": "預測",
"GENERATE_SQL_WITH_PERMISSIONS": "拼接 SQL 列權限",
"CHOOSE_DATASOURCE": "匹配資料來源",
"GENERATE_DYNAMIC_SQL": "產生動態 SQL",
"CHOOSE_TABLE": "匹配資料表 (Schema)",
"FILTER_TERMS": "匹配術語",
"FILTER_SQL_EXAMPLE": "匹配 SQL 範例",
"FILTER_CUSTOM_PROMPT": "匹配自訂提示詞",
"EXECUTE_SQL": "執行 SQL",
"GENERATE_PICTURE": "產生圖片"
},
"log_system": "對話範本",
"log_question": "本次提問",
"log_answer": "AI 回答",
"log_history": "歷史記錄",
"find_term_title": "匹配到 {0} 個術語",
"find_sql_sample_title": "匹配到 {0} 個SQL範例",
"find_custom_prompt_title": "匹配到 {0} 個自訂提示詞",
"query_count_title": "查詢到 {0} 筆資料",
"generate_picture_success": "已產生圖片"
},
"about": {
"title": "關於",
"auth_to": "授權給",
"invalid_license": "License 無效",
"update_license": "更新 License",
"expiration_time": "過期時間",
"expirationed": "(已過期)",
"auth_num": "授權數量",
"version": "版本",
"version_num": "版本號",
"standard": "社區版",
"enterprise": "企業版",
"professional": "專業版",
"embedded": "嵌入式版",
"support": "取得技術支援",
"update_success": "更新成功,請重新登入",
"serial_no": "序號",
"remark": "備註",
"back_community": "還原至社區版",
"confirm_tips": "確定還原至社區版?"
},
"license": {
"error_tips": "是否重新整理頁面?",
"offline_tips": "服務已下線,請聯繫管理員重啟服務!"
},
"system": {
"system_settings": "系統設定",
"appearance_settings": "外觀設定",
"authentication_settings": "登入認證",
"platform_display_theme": "平台顯示主題",
"default_turquoise": "預設 (松石綠)",
"tech_blue": "科技藍",
"custom": "自訂",
"platform_login_settings": "平台登入設定",
"page_preview": "頁面預覽",
"restore_default": "恢復預設",
"website_logo": "網站 Logo",
"tab": "頁籤",
"replace_image": "取代圖片",
"larger_than_200kb": "頂部網站顯示的 Logo,建議尺寸 48 x 48,支援 JPG、PNG、SVG,大小不超過 200KB",
"login_logo": "系統 Logo",
"larger_than_200kb_de": "登入頁面右側 Logo,建議尺寸 204*52,支援 JPG、PNG、SVG,大小不超過 200KB",
"login_background_image": "登入背景圖",
"larger_than_5mb": "左側背景圖,向量圖建議尺寸 576*900,點陣圖建議尺寸 1152*1800;支援 JPG、PNG、SVG,大小不超過 5M",
"website_name": "網站名稱",
"on_webpage_tabs": "顯示在網頁 Tab 的平台名稱",
"welcome_message": "顯示歡迎語",
"the_product_logo": "產品 Logo 下的 歡迎語",
"screen_customization_supported": "預設為 SQLBot 登入介面,支援自訂設定",
"screen_customization_settings": "預設為 SQLBot 平台介面,支援自訂設定",
"platform_settings": "平台設定",
"help_documentation": "說明文件",
"show_about": "顯示關於",
"abort_update": "放棄更新",
"save_and_apply": "儲存並套用",
"setting_successfully": "設定成功",
"customize_theme_color": "自訂主題色"
},
"platform": {
"title": "平台對接",
"status_open": "已開啟",
"status_close": "已關閉",
"access_in": "接入",
"can_enable_it": "測試連線有效後,可開啟"
},
"authentication": {
"invalid": "無效",
"valid": "有效",
"cas_settings": "CAS 設定",
"callback_domain_name": "回調位址",
"callback_domain_name_error": "回調位址必須是目前的存取網域名稱",
"field_mapping": "使用者屬性對應",
"field_mapping_placeholder": "例如:{'{'}\"account\": \"saml2Account\", \"name\": \"saml2Name\", \"email\": \"email\"{'}'}",
"incorrect_please_re_enter": "格式錯誤,請重新填寫",
"in_json_format": "請輸入json格式",
"authorize_url": "授權位址",
"client_id": "用戶端 ID",
"client_secret": "用戶端密鑰",
"redirect_url": "回調位址",
"logout_redirect_url": "登出回調位址",
"logout_redirect_url_placeholder": "登出後預設跳轉至 SQLBot 登入頁面,可自訂設定登出後跳轉位址",
"oauth2_settings": "OAuth2 設定",
"scope": "授權範圍",
"userinfo_url": "使用者資訊位址",
"token_url": "權杖位址",
"revoke_url": "撤銷位址",
"oauth2_field_mapping_placeholder": "例如:{'{'}\"account\": \"oauth2Account\", \"name\": \"oauth2Name\", \"email\": \"email\"{'}'}",
"token_auth_method": "Token 認證方式",
"userinfo_auth_method": "使用者資訊認證方式",
"oidc_settings": "OIDC 設定",
"metadata_url": "中繼資料位址",
"realm": "領域",
"oidc_field_mapping_placeholder": "例如:{'{'}\"account\": \"oidcAccount\", \"name\": \"oidcName\", \"email\": \"email\"{'}'}",
"ldap_settings": "LDAP 設定",
"server_address": "伺服器位址",
"server_address_placeholder": "例如:ldap://ldap.example.com:389",
"bind_dn": "繫結 DN",
"bind_dn_placeholder": "例如:cn=admin,dc=example,dc=com",
"bind_pwd": "繫結密碼",
"ou": "使用者 OU",
"ou_placeholder": "例如:ou=users,dc=example,dc=com",
"user_filter": "使用者過濾器",
"user_filter_placeholder": "例如:uid 或 uid {0} email, 多屬性以 {1} 分割",
"ldap_field_mapping_placeholder": "例如:{'{'}\"account\": \"ldapAccount\", \"name\": \"ldapName\", \"email\": \"mail\"{'}'}",
"be_turned_on": "測試連線有效後,可開啟"
},
"login": {
"default_login": "預設",
"ldap_login": "LDAP 登入",
"account_login": "帳號登入",
"other_login": "其他登入方式",
"pwd_invalid_error": "密碼已過期請聯繫管理員修改或重設",
"pwd_exp_tips": "密碼在 {0} 天後過期,請盡快修改密碼",
"qr_code": "QR Code",
"platform_disable": "{0}設定未開啟!",
"input_account": "請輸入帳號",
"redirect_2_auth": "正在跳轉至 {0} 認證,{1} 秒...",
"redirect_immediately": "立即跳轉",
"permission_invalid": "認證無效【目前帳號權限不夠】",
"scan_qr_login": "掃碼登入",
"no_auth_error": "未認證,即將跳轉登入頁面,{0} 秒..."
},
"supplier": {
"alibaba_cloud_bailian": "阿里雲百煉",
"qianfan_model": "千帆大模型",
"deepseek": "DeepSeek",
"tencent_hunyuan": "騰訊混元",
"iflytek_spark": "訊飛星火",
"gemini": "Gemini",
"openai": "OpenAI",
"kimi": "Kimi",
"tencent_cloud": "騰訊雲",
"volcano_engine": "火山引擎",
"minimax": "MiniMax",
"generic_openai": "通用OpenAI"
},
"modelType": {
"llm": "大語言模型"
},
"audit": {
"system_log": "操作日誌",
"search_log": "搜尋日誌",
"operation_type": "操作類型",
"operation_details": "操作詳情",
"operation_user_name": "操作使用者",
"operation_status": "操作狀態",
"user_name": "操作日誌",
"oid_name": "工作區",
"ip_address": "IP 位址",
"create_time": "建立時間",
"no_log": "暫無日誌",
"all_236_terms": "是否匯出全部 {msg} 筆日誌?",
"export_hint": "是否匯出全部日誌?",
"export": "匯出",
"success": "成功",
"failed": "失敗",
"failed_info": "操作失敗詳情",
"opt_time": "操作時間"
},
"api_key": {
"info_tips": "API Key 是您存取 SQLBot API 的密鑰,具有帳戶的完全權限,請您務必妥善保管!不要以任何方式公開 API Key 到外部渠道,避免被他人利用造成安全威脅。",
"create": "建立",
"to_doc": "檢視 API",
"trigger_limit": "最多支援建立 {0} 個 API Key"
}
}
+2
View File
@@ -177,6 +177,8 @@ export const UserStore = defineStore('user', {
language = 'zh-CN'
} else if (language === 'zh_CN') {
language = 'zh-CN'
} else if (language === 'zh_TW') {
language = 'zh-TW'
} else if (language === 'ko_KR') {
language = 'ko-KR'
}
+4 -1
View File
@@ -27,7 +27,6 @@
--ed-border-color: #d9dcdf !important;
--ed-color-primary-light-7: #d2f1e9 !important;
--ed-border-color: #d9dcdf !important;
--ed-border-radius-base: 6px !important;
--ed-disabled-border-color: #d9dcdf !important;
--ed-border-color-light: #dee0e3 !important;
--ed-border-color-lighter: #dee0e3 !important;
@@ -229,6 +228,10 @@ strong {
.ed-select-dropdown__item {
border-radius: 4px;
}
.ed-select-dropdown__list {
padding: 4px 0 !important;
}
}
.markdown-body {