Skip to content

Commit

Permalink
i18n: live log
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhan005 committed Aug 13, 2020
1 parent 4f1fe41 commit 4d7cbf7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/assets/languages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"input_your_flag": "Please input your flag here..."
},
"log": {
"live_log": "Live Log",
"no_data": "No Data",
"submit_flag": "{to} [ {challenge} ] was attacked by {from}",
"check_down": "{team} [ {challenge} ] down"
},
Expand Down
2 changes: 2 additions & 0 deletions src/assets/languages/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"input_your_flag": "请输入你的 Flag"
},
"log": {
"live_log": "实时动态",
"no_data": "暂无动态",
"submit_flag": "{from} 攻陷了 {to} [ {challenge} ]",
"check_down": "{team} [ {challenge} ] 服务宕机"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/LiveLog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</template>
</v-simple-table>
<div style="height: 200px;" v-else>
暂无动态
{{$t('log.no_data')}}
</div>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</v-col>
<v-col cols="12" md="8">
<v-card class="mx-auto">
<v-card-title>实时动态</v-card-title>
<v-card-title>{{$t('log.live_log')}}</v-card-title>
<v-card-text>
<LiveLog/>
</v-card-text>
Expand Down

0 comments on commit 4d7cbf7

Please sign in to comment.