diff --git a/components/LanguageContext.tsx b/components/LanguageContext.tsx index 5d4bc93..c33e942 100644 --- a/components/LanguageContext.tsx +++ b/components/LanguageContext.tsx @@ -580,6 +580,11 @@ const translations: Record> = { 'visits': '访问量', 'visitors': '访客数', 'star_request': '如果觉得好用,请给项目点个⭐Star吧!', + 'history': '历史记录', + 'no_history': '暂无历史记录', + 'history_notice': '查看报告后将自动保存', + 'delete_history': '删除', + 'clear_all': '清空', // 表单标签 'annual_salary_cny': '年薪总包(元)', @@ -808,6 +813,11 @@ const translations: Record> = { 'visits': 'Visits', 'visitors': 'Visitors', 'star_request': 'If you find this tool helpful, please give it a ⭐Star!', + 'history': 'History', + 'no_history': 'No history records', + 'history_notice': 'Records will be saved after viewing reports', + 'delete_history': 'Delete', + 'clear_all': 'Clear All', // Form labels 'annual_salary_cny': 'Annual Salary (CNY)', @@ -1036,6 +1046,11 @@ const translations: Record> = { 'visits': 'アクセス数', 'visitors': '訪問者数', 'star_request': '役に立ったら、⭐スターを付けてください!', + 'history': '履歴', + 'no_history': '履歴がありません', + 'history_notice': 'レポートを見た後、自動的に保存されます', + 'delete_history': '削除', + 'clear_all': 'すべて削除', // フォームラベル 'annual_salary_cny': '年収(元)', diff --git a/components/calculator.tsx b/components/calculator.tsx index 6b82f74..3bdac4e 100644 --- a/components/calculator.tsx +++ b/components/calculator.tsx @@ -866,7 +866,7 @@ const SalaryCalculator = () => {
-

v5.6.1

+

v6.1.1

{ className="text-sm text-gray-500 hover:text-blue-500 dark:text-gray-400 dark:hover:text-blue-400 transition-colors flex items-center gap-1 cursor-pointer" > - {language === 'zh' ? '历史记录' : 'History'} + {t('history')} )}
@@ -905,7 +905,7 @@ const SalaryCalculator = () => {

- {language === 'zh' ? '历史记录' : 'History'} + {t('history')}

{history.length > 0 && ( @@ -913,7 +913,7 @@ const SalaryCalculator = () => { onClick={clearAllHistory} className="text-xs text-gray-500 hover:text-red-500 dark:hover:text-red-400 transition-colors px-2 py-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700" > - {language === 'zh' ? '清空' : 'Clear All'} + {t('clear_all')} )}

- {language === 'zh' ? '暂无历史记录' : 'No history records'} + {t('no_history')}

- {language === 'zh' ? '查看报告后将自动保存' : 'Records will be saved after viewing reports'} + {t('history_notice')}

)}