From a231e178c19ea339470c3b0f609d454fa5902183 Mon Sep 17 00:00:00 2001 From: Suemor Date: Thu, 16 Jan 2025 16:26:14 +0800 Subject: [PATCH] feat(locales): dynamically update copyright year (#2583) --- apps/renderer/src/modules/settings/tabs/about.tsx | 4 +++- locales/settings/en.json | 2 +- locales/settings/ja.json | 2 +- locales/settings/ru.json | 2 +- locales/settings/zh-CN.json | 2 +- locales/settings/zh-HK.json | 2 +- locales/settings/zh-TW.json | 2 +- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/renderer/src/modules/settings/tabs/about.tsx b/apps/renderer/src/modules/settings/tabs/about.tsx index 170d064e0..110005cec 100644 --- a/apps/renderer/src/modules/settings/tabs/about.tsx +++ b/apps/renderer/src/modules/settings/tabs/about.tsx @@ -64,7 +64,9 @@ export const SettingAbout = () => { -

{t("about.licenseInfo", { appName: APP_NAME })}

+

+ {t("about.licenseInfo", { appName: APP_NAME, currentYear: new Date().getFullYear() })} +

open an issue on our GitHub.", "about.iconLibrary": "The icon library used is copyrighted by and cannot be redistributed.", - "about.licenseInfo": "Copyright © 2024 {{appName}}. All rights reserved.", + "about.licenseInfo": "Copyright © {{currentYear}} {{appName}}. All rights reserved.", "about.sidebar_title": "About", "about.socialMedia": "Social Media", "actions.actionName": "Action {{number}}", diff --git a/locales/settings/ja.json b/locales/settings/ja.json index adeec9986..16deb5a18 100644 --- a/locales/settings/ja.json +++ b/locales/settings/ja.json @@ -2,7 +2,7 @@ "about.changelog": "変更履歴", "about.feedbackInfo": "{{appName}} ({{commitSha}}) は開発の初期段階にあります。フィードバックや提案があれば、気軽に GitHub で課題を報告してください 。", "about.iconLibrary": "使用されているアイコンライブラリは によって著作権が保護されており、再配布できません。", - "about.licenseInfo": "Copyright © 2024 {{appName}}. All rights reserved.", + "about.licenseInfo": "Copyright © {{currentYear}} {{appName}}. All rights reserved.", "about.sidebar_title": "About", "about.socialMedia": "ソーシャルメディア", "actions.actionName": "アクション {{number}}", diff --git a/locales/settings/ru.json b/locales/settings/ru.json index ba5430621..a16fe14ca 100644 --- a/locales/settings/ru.json +++ b/locales/settings/ru.json @@ -2,7 +2,7 @@ "about.changelog": "Журнал изменений", "about.feedbackInfo": "{{appName}} ({{commitSha}}) находится на ранних этапах разработки. Если у вас есть отзывы или предложения, пожалуйста, откройте задачу на нашем GitHub.", "about.iconLibrary": "Библиотека иконок защищена авторскими правами и не может быть перераспределена.", - "about.licenseInfo": "Авторское право © 2024 {{appName}}. Все права защищены.", + "about.licenseInfo": "Авторское право © {{currentYear}} {{appName}}. Все права защищены.", "about.sidebar_title": "О проекте", "about.socialMedia": "Социальные сети", "actions.actionName": "Действие {{number}}", diff --git a/locales/settings/zh-CN.json b/locales/settings/zh-CN.json index 1cec56d12..880a4d659 100644 --- a/locales/settings/zh-CN.json +++ b/locales/settings/zh-CN.json @@ -2,7 +2,7 @@ "about.changelog": "更新日志", "about.feedbackInfo": "{{appName}}({{commitSha}})正处于开发的早期阶段。如果你有任何反馈或建议,请随时在我们的 GitHub 上提出 。", "about.iconLibrary": "使用的图标库受版权保护,版权所有者为 ,不得重新分发。", - "about.licenseInfo": "Copyright © 2024 {{appName}}. 保留所有权利。", + "about.licenseInfo": "Copyright © {{currentYear}} {{appName}}. 保留所有权利。", "about.sidebar_title": "关于", "about.socialMedia": "社交媒体", "actions.actionName": "规则 {{number}}", diff --git a/locales/settings/zh-HK.json b/locales/settings/zh-HK.json index 12a3f6f87..0191d94f8 100644 --- a/locales/settings/zh-HK.json +++ b/locales/settings/zh-HK.json @@ -2,7 +2,7 @@ "about.changelog": "更新日誌", "about.feedbackInfo": "{{appName}}({{commitSha}})仍處於開發初期階段。如果你有任何意見或建議,歡迎到我們的 GitHub 提交問題 。", "about.iconLibrary": "所使用的圖示庫受 版權保護,不能轉發。", - "about.licenseInfo": "版權所有 © 2024 {{appName}}。保留一切權利。", + "about.licenseInfo": "版權所有 © {{currentYear}} {{appName}}。保留一切權利。", "about.sidebar_title": "關於", "about.socialMedia": "社交媒體", "actions.actionName": "動作 {{number}}", diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json index 636f825d5..da9bc9038 100644 --- a/locales/settings/zh-TW.json +++ b/locales/settings/zh-TW.json @@ -2,7 +2,7 @@ "about.changelog": "更新日誌", "about.feedbackInfo": "{{appName}} ({{commitSha}}) 正處於開發早期階段。如果您有任何回饋或建議,請隨時在我們的 GitHub 上 提交問題 。", "about.iconLibrary": "所使用的圖標庫版權由 所有,不得重新分發。", - "about.licenseInfo": "版權所有 © 2024 {{appName}}。保留所有權利。", + "about.licenseInfo": "版權所有 © {{currentYear}} {{appName}}。保留所有權利。", "about.sidebar_title": "關於", "about.socialMedia": "社群媒體", "actions.actionName": "規則 {{number}}",