CN-38 feat: 添加 chart type 31
This commit is contained in:
@@ -258,6 +258,14 @@ const cn = {
|
||||
},
|
||||
response: '响应'
|
||||
}
|
||||
},
|
||||
chart: {
|
||||
pieTable: {
|
||||
domain: '域名',
|
||||
bytes: '字节数',
|
||||
packets: '包数',
|
||||
sessions: '会话数'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -259,6 +259,14 @@ const en = {
|
||||
logout: 'logout'
|
||||
}
|
||||
}
|
||||
},
|
||||
chart: {
|
||||
pieTable: {
|
||||
domain: 'Domain',
|
||||
bytes: 'Bytes',
|
||||
packets: 'Packets',
|
||||
sessions: 'Sessions'
|
||||
}
|
||||
}
|
||||
}
|
||||
export default en
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
import { createI18n } from 'vue-i18n'
|
||||
import { storageKey } from '@/utils/constants'
|
||||
import { getI18n } from '@/utils/api'
|
||||
import cn from './cn'
|
||||
import en from './en'
|
||||
|
||||
const i18n = createI18n({
|
||||
locale: localStorage.getItem(storageKey.language) || 'en',
|
||||
messages: {}
|
||||
messages: {
|
||||
cn: cn,
|
||||
en: en
|
||||
}
|
||||
})
|
||||
export async function loadI18n () {
|
||||
const items = await getI18n()
|
||||
|
||||
Reference in New Issue
Block a user