From a7e1f5c79a821119ce793182a293c82c6412bf06 Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 26 Sep 2022 22:53:25 +0800 Subject: [PATCH] feat(language): added footer upyun translation --- languages/en.yml | 1 + languages/zh-CN.yml | 1 + languages/zh-TW.yml | 1 + layout/_partial/footer.ejs | 4 +--- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/languages/en.yml b/languages/en.yml index 4538175..cbba291 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -7,6 +7,7 @@ page: Page %d recent_posts: Recent Posts share: Share powered_by: "Powered by %s" +footer_upyun: "CDN acceleration and Cloud storage services are provided by %s" theme: Theme rss_feed: RSS Feed category: Category diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index 1245850..30118d8 100644 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -7,6 +7,7 @@ page: 第 %d 页 recent_posts: 最新文章 share: 分享 powered_by: "由 %s 驱动" +footer_upyun: "本站由 %s 提供 CDN 加速和云存储服务" theme: 主题 rss_feed: RSS Feed category: 分类 diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index a7451f1..c59ea20 100644 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -7,6 +7,7 @@ page: 第 %d 頁 recent_posts: 之前的文章 share: 分享 powered_by: "%s 框架" +footer_upyun: "本站由 %s 提供 CDN 加速和雲存儲服務" theme: 主題 rss_feed: RSS 訂閱 category: 分類 diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 38f760b..970be3a 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -55,9 +55,7 @@ const { site_uv: bsz_site_uv, site_pv: bsz_site_pv, enable: bsz_enable } = theme <% if (f_upyun) { %>
- 本站由 - - 提供 CDN 加速和云存储服务 + <%- __('footer_upyun', '') %>
<% } %>