Skip to content

Commit

Permalink
feat: i18n for analysis hot-search
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwa committed Oct 20, 2018
1 parent baba30e commit 9e49e08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Analysis/HotSearch.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<template>
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
<analysis-middle title="线上热门搜索">
<analysis-middle :title="$t('analysis.topSearch.middleTitle')">
<el-row :gutter="68">
<el-col :xs="24" :sm="12">
<middle-chart-card
title="搜索用户数"
:title="$t('analysis.topSearch.searchUsers')"
:highlight="searchData.total.value"
:trend="searchData.total.trend"
:shadow="shadow"
tooltip="这是搜索用户数"
:tooltip="$t('analysis.topSearch.searchUsersDesc')"
:bodyStyle="bodyStyle"
>
<chart-line
Expand All @@ -27,11 +27,11 @@
</el-col>
<el-col :xs="24" :sm="12">
<middle-chart-card
title="人均搜索次数"
:title="$t('analysis.topSearch.perCapitaSearch')"
:highlight="searchData.average.value"
:trend="searchData.average.trend"
:shadow="shadow"
tooltip="这是人均搜索次数"
:tooltip="$t('analysis.topSearch.perCapitaSearchDesc')"
:bodyStyle="bodyStyle"
>
<chart-line
Expand Down
7 changes: 7 additions & 0 deletions src/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ export default {
salesRanking: 'Sales Ranking',
visitsTrend: 'Visits Trend',
visitsRanking: 'Visits Ranking'
},
topSearch: {
middleTitle: 'Online Top Search',
searchUsers: 'Search Users',
searchUsersDesc: 'This is search users',
perCapitaSearch: 'Per Capita Search',
perCapitaSearchDesc: 'This is per capita search'
}
},
workspace: {
Expand Down

0 comments on commit 9e49e08

Please sign in to comment.