mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: i18n
This commit is contained in:
@@ -537,6 +537,7 @@
|
||||
"data_predict": "Data Prediction",
|
||||
"ds_is_invalid": "Datasource is invalid",
|
||||
"error": "Error",
|
||||
"no_data": "No Data",
|
||||
"show_error_detail": "Show error info"
|
||||
},
|
||||
"about": {
|
||||
|
||||
@@ -537,6 +537,7 @@
|
||||
"data_predict": "数据预测",
|
||||
"ds_is_invalid": "数据源无效",
|
||||
"error": "错误",
|
||||
"no_data": "暂无数据",
|
||||
"show_error_detail": "查看具体信息"
|
||||
},
|
||||
"about": {
|
||||
|
||||
@@ -3,6 +3,7 @@ import ChartComponent from '@/views/chat/component/ChartComponent.vue'
|
||||
import type { ChatMessage } from '@/api/chat.ts'
|
||||
import { computed, nextTick, ref } from 'vue'
|
||||
import type { ChartTypes } from '@/views/chat/component/BaseChart.ts'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | string
|
||||
@@ -11,6 +12,8 @@ const props = defineProps<{
|
||||
data: Array<{ [key: string]: any }>
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const chartObject = computed<{
|
||||
type: ChartTypes
|
||||
title: string
|
||||
@@ -91,7 +94,7 @@ defineExpose({
|
||||
:series="series"
|
||||
:data="data"
|
||||
/>
|
||||
<el-empty v-else description="No Data" />
|
||||
<el-empty v-else :description="t('chat.no_data')" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user