Skip to content

Commit

Permalink
Fix translate error
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Jun 15, 2018
1 parent 8542632 commit 3d191aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Col span="6">
<Input v-model="filterString" icon="search" size="large" @on-change="handleSearch" :placeholder="$t('Please enter the filter key...')" style="width: 400px" />
</Col>
<Col span="3" offset="15" class="counter">{{ $t('Online Device: {count}', {count: devlists.length}) }}</Col>
<Col span="3" offset="15" class="counter">{{ $t('device-count', {count: devlists.length}) }}</Col>
</Row>
<Table :loading="loading" :columns="devlistTitle" :data="filtered" style="margin-top: 10px; width: 100%" :no-data-text="$t('No devices connected')"></Table>
</div>
Expand Down
5 changes: 3 additions & 2 deletions assets/src/rtty-i18n.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const RttyI18n = {
'en-US': {
'upfile-info': 'The file "{name}" will be saved in the "/tmp/" directory of your device.'
'upfile-info': 'The file "{name}" will be saved in the "/tmp/" directory of your device.',
'device-count': 'Online Device: {count}'
},
'zh-CN': {
'Description': '描述',
Expand Down Expand Up @@ -31,7 +32,7 @@ const RttyI18n = {
'username is required': '用户名为必填',
'Login Fail! username or password wrong.': '登录失败,用户名或密码错误',
'Connect failed': '连接失败',
'Online Device: {count}': '在线设备数:{count}',
'device-count': '在线设备数:{count}',
}
}

Expand Down

0 comments on commit 3d191aa

Please sign in to comment.