Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

feat(i18n): add zh-CN translations for navigation and dashboard (#4608)

Kenrick Tandrian52041db49a0e
diff --git a/config/locales/views/layout/zh-CN.yml b/config/locales/views/layout/zh-CN.yml
index a3f43567e6..7ddf10cf58 100644
--- a/config/locales/views/layout/zh-CN.yml
+++ b/config/locales/views/layout/zh-CN.yml
@@ -2,15 +2,23 @@
zh-CN:
layouts:
application:
+ insights: 财务洞察
privacy_mode: 切换隐私模式
+ resize_left_sidebar: 调整账户侧边栏大小
+ resize_right_sidebar: 调整助手侧边栏大小
skip_to_main: 跳转到主要内容
+ release_highlight:
+ title: 新功能
+ done: 知道了
nav:
assistant: 助手
+ bills: 账单
budgets: 预算
home: 主页
+ plan: 规划
reports: 报表
- transactions: 交易
goals: 目标
+ transactions: 交易
auth:
existing_account: 已经有账户?
no_account: 新加入 %{product_name}?
@@ -24,6 +32,10 @@ zh-CN:
are_you_sure: 您确定吗?
cannot_be_undone: 此操作无法撤销。
confirm: 确认
+ notification_tray:
+ download_complete: 下载完成
+ download_failed: 下载失败。请重试。
+ download_location: 文件保存在您的“下载”文件夹中。
trial:
open_demo: 打开演示
data_deleted_in_days: 数据将在 %{days} 天后删除
diff --git a/config/locales/views/pages/zh-CN.yml b/config/locales/views/pages/zh-CN.yml
index 9a4884f5fd..cfc08b6edc 100644
--- a/config/locales/views/pages/zh-CN.yml
+++ b/config/locales/views/pages/zh-CN.yml
@@ -26,6 +26,9 @@ zh-CN:
refresh_page: 刷新页面
changelog:
title: 有什么新内容
+ release_notes_unavailable:
+ name: 发布说明暂不可用
+ body_html: "<p>暂时无法获取最新发布说明。请稍后再试,或直接访问 <a href='https://github.com/we-promise/sure/releases' target='_blank' rel='noopener noreferrer'>GitHub releases 页面</a>。</p>"
privacy:
title: 隐私政策
heading: 隐私政策
@@ -35,15 +38,29 @@ zh-CN:
heading: 服务条款
placeholder: 服务条款内容将显示在这里。
dashboard:
- cashflow_preview:
- node_labels:
- cash_flow: "现金流"
- surplus: "盈余"
- deficit: "赤字"
welcome: 欢迎回来,%{name}
subtitle: 以下是您的财务状况概览
new: 新建
+ sections_aria_label: 仪表盘分区
toggle_section: 切换模块可见性
+ customize:
+ start: 自定义
+ done: 完成
+ hide: 隐藏 %{title}
+ hidden_title: 已隐藏的小部件
+ hidden_description: 将小部件重新添加到仪表盘。
+ none_hidden: 所有小部件均已显示。点击小部件的眼睛按钮可将其隐藏。
+ all_hidden_title: 所有小部件均已隐藏
+ all_hidden_description: 自定义仪表盘以重新添加小部件。
+ widget_size:
+ label: 调整大小
+ width_label: 宽度
+ half: 半宽
+ full: 全宽
+ height_label: 高度
+ compact: 紧凑
+ auto: 自动
+ tall: 较高
net_worth_chart:
data_not_available: 所选时间段内无可用数据
title: 净资产
@@ -62,10 +79,44 @@ zh-CN:
name: 名称
weight: 占比
value: 金额
+ expand_all: 全部展开
+ collapse_all: 全部折叠
classifications:
asset: 资产
liability: 负债
+ insights_feed:
+ title: 财务洞察
+ cashflow_preview:
+ opt_in_title: 显示新图表
+ opt_in_description: 对比实验性桑基图与上方图表。您可以随时关闭此功能。
+ node_labels:
+ cash_flow: 现金流
+ surplus: 盈余
+ deficit: 赤字
+ invested: 已投资
+ title: 新版桑基图
+ preview: 预览
+ preview_tooltip: 这将替换上述可视化图表,因为它采用了与移动端 Swift 客户端共用的新 API。
+ group_by_label: 资金流分组方式
+ group_by_category: 分类
+ group_by_account: 账户
+ feedback_prompt: 请对比此图表与上方的原始图表,若除了排序之外有任何异常,请告诉我们。
+ positive: 看起来正确
+ negative: 看起来有异常
+ feedback_title: 现金流图表反馈
+ feedback_loading: 正在加载反馈表单…
+ feedback_unavailable: 当前无法提交反馈。请稍后重试。
+ feedback_thanks: 感谢您帮助我们改进图表!
+ feedback_privacy: 您的反馈将发送至 PostHog。描述问题时请勿包含账号、余额或其他私密财务信息。
+ feedback_submit: 发送反馈
+ sort_label: 资金流排序
+ sort_auto: 自动
+ sort_ascending: 金额从小到大
+ sort_descending: 金额从大到小
cashflow_sankey:
+ loading: 正在加载现金流…
+ load_error: 无法加载现金流。请重试。
+ retry: 重试
title: 现金流
zoom_out: 返回完整现金流
no_data_title: 此时间段内没有现金流数据
@@ -89,11 +140,34 @@ zh-CN:
value: 金额
return: 回报
period_activity: "%{period} 活动"
- contributions: 贡献
- withdrawals: 提现
+ contributions: 投入
+ withdrawals: 提取
trades: 交易
no_investments: 暂无投资账户
add_investment: 添加投资账户以跟踪您的投资组合
- release_notes_unavailable:
- name: 发布说明暂不可用
- body_html: "<p>暂时无法获取最新发布说明。请稍后再试,或直接访问 <a href='https://github.com/we-promise/sure/releases' target='_blank' rel='noopener noreferrer'>GitHub releases 页面</a>。</p>"
+ money_flow:
+ title: 资金流入 / 流出
+ date_range: "%{start_date} 至 %{end_date}"
+ month_picker_aria_label: 选择月份
+ filter_accounts: 筛选账户 (%{count})
+ filter_accounts_all: 所有账户
+ period_scope_hint: 显示您在此处选择的月份 — 独立于顶部仪表盘的时间范围。
+ search_accounts: 搜索账户
+ apply: 应用
+ balance: 交易差额
+ chart_span: 最近 %{count} 个月
+ income: 收入
+ expenses: 支出
+ spending_trend:
+ title: 支出趋势
+ date_range: "%{start_date} 至 %{end_date}"
+ date_range_short: "%{year}年%{start_date} - %{end_day}日"
+ date_range_short_single: "%{year}年%{date}"
+ month_picker_aria_label: 选择月份
+ filter_categories: 筛选分类 (%{count})
+ filter_categories_all: 所有分类
+ search_categories: 搜索分类
+ apply: 应用
+ period_scope_hint: 显示您在此处选择的月份 — 独立于顶部仪表盘的时间范围。
+ no_data: 本月暂无支出数据
+ previous_comparison_days: "(1-%{end_day}日)"
diff --git a/config/locales/views/passkey_sessions/zh-CN.yml b/config/locales/views/passkey_sessions/zh-CN.yml
new file mode 100644
index 0000000000..99eb411115
--- /dev/null
+++ b/config/locales/views/passkey_sessions/zh-CN.yml
@@ -0,0 +1,4 @@
+---
+zh-CN:
+ passkey_sessions:
+ invalid_credential: 无法使用该通行密钥登录。请重试或使用密码登录。
diff --git a/config/locales/views/sessions/zh-CN.yml b/config/locales/views/sessions/zh-CN.yml
index 8502f5fd47..0c37658cf7 100644
--- a/config/locales/views/sessions/zh-CN.yml
+++ b/config/locales/views/sessions/zh-CN.yml
@@ -4,6 +4,7 @@ zh-CN:
create:
invalid_credentials: 邮箱或密码无效。
local_login_disabled: 本地密码登录已禁用。请使用单点登录。
+ account_deactivated: 此账户已被停用。请联系管理员。
destroy:
logout_successful: 您已成功退出登录。
post_logout:
@@ -30,6 +31,8 @@ zh-CN:
oidc: 使用 OpenID Connect 登录
google_auth_connect: 使用 Google 登录
local_login_admin_only: 本地登录仅限管理员使用。
+ passkey_button: 使用通行密钥登录
+ passkey_unsupported: 此浏览器不支持通行密钥。
no_auth_methods_enabled: 当前没有启用任何认证方式。请联系管理员。
demo_banner_title: 演示模式已启用
demo_banner_message: 这是一个演示环境。为方便起见,登录凭据已预先填好。请不要输入真实或敏感信息。
diff --git a/config/locales/views/shared/zh-CN.yml b/config/locales/views/shared/zh-CN.yml
index 1e285dac41..982816a3b5 100644
--- a/config/locales/views/shared/zh-CN.yml
+++ b/config/locales/views/shared/zh-CN.yml
@@ -11,7 +11,14 @@ zh-CN:
cancel: 取消
title: 确定吗?
money_field:
+ above_max: 输入的金额不能超过 %{max}。
+ below_min: 输入的金额不能少于 %{min}。
+ invalid_amount: 请输入有效的金额或算式。
label: 金额
+ operator_add: 加
+ operator_subtract: 减
+ operator_multiply: 乘
+ operator_divide: 除
exchange_rate_tabs:
calculate_rate_tab: 计算汇率
convert_tab: 使用汇率换算
@@ -21,6 +28,8 @@ zh-CN:
syncing_notice:
syncing: 账户数据同步中……
require_admin: 只有管理员才能执行此操作
+ require_non_guest: 访客无法执行此操作
+ require_connector_owner: 您只能管理自己添加的连接
custom_confirm:
default_title: 确定吗?
default_body: 此操作不可逆。
@@ -44,3 +53,13 @@ zh-CN:
sync_toast:
message: 有新数据可用
refresh: 刷新
+ sidekiq_health_banner:
+ title: 部分数据可能已过期
+ body: 后台任务未在处理,因此余额、净资产和账户同步可能已过期或缺失。
+ cta: 查看系统运行状况
+ reasons:
+ redis_unreachable: 应用程序无法连接到 Redis。请检查您的 REDIS_URL 并确认 Redis 正在运行。
+ no_worker_processes: 没有连接的 Sidekiq 工作进程。请启动 worker 容器或 systemd 服务单元。
+ stale_heartbeat: Sidekiq 工作进程近期未上报心跳。可能已卡住或崩溃。
+ ai_queues_not_polled: 没有工作进程正在处理 AI 队列(聊天、商户识别、分类)。请检查工作进程是否加载了 config/sidekiq.yml。
+ queue_backed_up: 队列中最早的任务等待时间已超出延迟预算。工作进程仍在运行但已落后。
diff --git a/config/locales/views/transactions/zh-CN.yml b/config/locales/views/transactions/zh-CN.yml
index 99f729a3da..d062c452a3 100644
--- a/config/locales/views/transactions/zh-CN.yml
+++ b/config/locales/views/transactions/zh-CN.yml
@@ -399,3 +399,6 @@ zh-CN:
split: 拆分
split_tooltip: 此交易已拆分为多条记录
split_child_tooltip: 拆分交易的一部分
+ transfer_hint: 转账?
+ transfer_hint_dismiss: 不是转账
+ transfer_hint_tooltip: 另一账户中的匹配交易疑似为此转账的对应记录 — 点击进行匹配