From 3d191aa1d97b777b7c33b8e3fb8ac179b9acc7d9 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Fri, 15 Jun 2018 22:22:59 +0800 Subject: [PATCH] Fix translate error Signed-off-by: Jianhui Zhao --- assets/src/components/Home.vue | 2 +- assets/src/rtty-i18n.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/src/components/Home.vue b/assets/src/components/Home.vue index 26eec25..dedc2a5 100644 --- a/assets/src/components/Home.vue +++ b/assets/src/components/Home.vue @@ -4,7 +4,7 @@ - {{ $t('Online Device: {count}', {count: devlists.length}) }} + {{ $t('device-count', {count: devlists.length}) }}
diff --git a/assets/src/rtty-i18n.js b/assets/src/rtty-i18n.js index dd9f79e..082047e 100644 --- a/assets/src/rtty-i18n.js +++ b/assets/src/rtty-i18n.js @@ -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': '描述', @@ -31,7 +32,7 @@ const RttyI18n = { 'username is required': '用户名为必填', 'Login Fail! username or password wrong.': '登录失败,用户名或密码错误', 'Connect failed': '连接失败', - 'Online Device: {count}': '在线设备数:{count}', + 'device-count': '在线设备数:{count}', } }