Skip to content

Commit

Permalink
feat: add missing translation
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Oct 23, 2022
1 parent 5f6606a commit cbe6f64
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
[![Mozilla Add-on](https://img.shields.io/amo/users/rsshub-radar?color=%2344cc11&style=flat-square)](https://addons.mozilla.org/zh-CN/firefox/addon/rsshub-radar/)
[![Mozilla Add-on](https://img.shields.io/amo/rating/rsshub-radar?style=flat-square)](https://addons.mozilla.org/zh-CN/firefox/addon/rsshub-radar/)

<a href="https://chrome.google.com/webstore/detail/kefjpfngnndepjbopdmoebkipbgkggaa"><img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_128x128.png" width="48" /></a>
<a href="https://microsoftedge.microsoft.com/addons/detail/gangkeiaobmjcjokiofpkfpcobpbmnln"><img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_128x128.png" width="48" /></a>
<a href="https://addons.mozilla.org/zh-CN/firefox/addon/rsshub-radar/"><img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_128x128.png" width="48" /></a>
<a href="https://apps.apple.com/us/app/rsshub-radar/id1610744717?l=zh&mt=12"><img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_128x128.png" width="48" /></a>

## Introduction 介绍

[Telegram group群](https://t.me/rsshub) | [Telegram channel频道](https://t.me/awesomeRSSHub)
Expand Down
2 changes: 1 addition & 1 deletion src/js/common/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function secondToTime(second) {
const hour = Math.floor(second / 3600);
const min = Math.floor((second - hour * 3600) / 60);
return `${hour ? hour + '小时' : ''}${min}分钟`;
return `${hour ? hour + 'h ' : ''}${min}min `;
}

export function secondToHoursMinutes(second) {
Expand Down
4 changes: 2 additions & 2 deletions src/js/options/views/Setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
</div>
<div class="subtitle">{{ $i18n.t('rules update') }}</div>
<div class="setting-item">
<div class="setting-name" v-if="defaultConfig.enableRemoteRules">我会自动更新,你也可以</div>
<div class="setting-name" v-if="defaultConfig.enableRemoteRules">{{ $i18n.t('i will update automatically and you can') }}</div>
<div class="setting-input" v-if="defaultConfig.enableRemoteRules">
<el-button style="width: 98px" size="medium" @click="refreshRu" :disabled="refreshDisabled">{{ refreshDisabled ? '更新中' : '立即更新' }}</el-button><el-progress :text-inside="true" :stroke-width="20" :percentage="percentage"></el-progress><span class="time">{{ time }}前更新,{{ leftTime }}后自动更新</span>
<el-button style="" size="medium" @click="refreshRu" :disabled="refreshDisabled">{{ refreshDisabled ? $i18n.t('updating') : $i18n.t('update now') }}</el-button><el-progress :text-inside="true" :stroke-width="20" :percentage="percentage"></el-progress><span class="time">{{ time }} {{ $i18n.t('before update') }}, {{ leftTime }} {{ $i18n.t('after automatic update') }}</span>
</div>
<div class="setting-name" v-if="!defaultConfig.enableRemoteRules">{{ $i18n.t('enable remote rules') }}</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"current site RSSHub": "RSSHub for the current site",
"documentation": "Info",
"enable": "Enable",
"i will update automatically and you can": "I will update automatically, and you can",
"updating": "Updating",
"update now": "Update Now",
"before update": "before update",
"after automatic update": "after automatic update",
"enable remote rules": "Enable remote rules",
"enter rsshub domain": "Please enter your RSSHub domain name, leave it blank to use the official domain name",
"for more rules join us": "For more rules support, <a target=\"_blank\" href=\"https://docs.rsshub.app/en/joinus/quick-start.html\">join us</a>!",
Expand Down
5 changes: 5 additions & 0 deletions src/translations/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"current site RSSHub": "适用于当前网站的 RSSHub",
"documentation": "文档",
"enable": "开启",
"i will update automatically and you can": "我会自动更新,你也可以",
"updating": "更新中",
"update now": "立即更新",
"before update": "前更新",
"after automatic update": "后自动更新",
"enable remote rules": "远程更新被禁用",
"enter rsshub domain": "请输入你的 RSSHub 域名,留空使用官方域名",
"for more rules join us": "更多规则支持中,快来<a target=\"_blank\" href=\"https://docs.rsshub.app/joinus/quick-start.html\">参与我们</a>吧!",
Expand Down

0 comments on commit cbe6f64

Please sign in to comment.