CN-38 feat: 添加 chart type 31

This commit is contained in:
zhangyu
2021-06-23 15:57:34 +08:00
parent 407e1c9c9f
commit becfb5b120
23 changed files with 334 additions and 51 deletions

View File

@@ -258,6 +258,14 @@ const cn = {
},
response: '响应'
}
},
chart: {
pieTable: {
domain: '域名',
bytes: '字节数',
packets: '包数',
sessions: '会话数'
}
}
}

View File

@@ -259,6 +259,14 @@ const en = {
logout: 'logout'
}
}
},
chart: {
pieTable: {
domain: 'Domain',
bytes: 'Bytes',
packets: 'Packets',
sessions: 'Sessions'
}
}
}
export default en

View File

@@ -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()