Skip to content

Commit

Permalink
i18n: submit flag
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhan005 committed Aug 7, 2020
1 parent b419650 commit a2758bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/assets/languages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"empty": "No Challenge for Now"
},
"flag": {
"submit": "Submit Flag"
"submit_flag": "Submit Flag",
"submit": "Submit",
"input_your_flag": "Please input your flag here..."
},
"timer": {
"not_begin": "The Game is not ready",
Expand Down
4 changes: 3 additions & 1 deletion src/assets/languages/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"empty": "暂时还没有题目哟~"
},
"flag": {
"submit": "提交 Flag"
"submit_flag": "提交 Flag",
"submit": "提交",
"input_your_flag": "请输入你的 Flag"
},
"timer": {
"not_begin": "比赛未开始",
Expand Down
6 changes: 3 additions & 3 deletions src/components/SubmitFlag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<v-snackbar v-model="snackBarVisible" color="error" :timeout="3000" :top="true">{{ message }}</v-snackbar>

<v-card-title>
<span style="margin-right: 20px;">{{$t('flag.submit')}}</span>
<span style="margin-right: 20px;">{{$t('flag.submit_flag')}}</span>
<v-text-field
v-model="inputFlag"
label="手动提交"
:label="$t('flag.input_your_flag')"
clearable
></v-text-field>
<v-btn style="margin-left: 20px;" @click="submitFlag">提交</v-btn>
<v-btn style="margin-left: 20px;" @click="submitFlag">{{$t('flag.submit')}}</v-btn>
</v-card-title>
<v-card-text>
<h2>POST <code style="background-color: #1c1c1c">/flag</code></h2><br>
Expand Down

0 comments on commit a2758bb

Please sign in to comment.