Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

feat(i18n): add missing zh-CN translations for models and defaults (#4568)

Kenrick Tandrianb0d97e50c1fd
diff --git a/config/locales/breadcrumbs/zh-CN.yml b/config/locales/breadcrumbs/zh-CN.yml
index 2103f4c8d5..954103d395 100644
--- a/config/locales/breadcrumbs/zh-CN.yml
+++ b/config/locales/breadcrumbs/zh-CN.yml
@@ -16,7 +16,9 @@ zh-CN:
budgets: 预算
categories: 分类
categorize: 分类
+ changelog: 更新日志
chats: 聊天
+ classifier: 分类器
coinbase_items: Coinbase
coinstats_items: CoinStats
credit_cards: 信用卡
@@ -29,6 +31,7 @@ zh-CN:
exports: 导出
family_exports: 导出
family_merchants: 商户
+ feedback: 反馈
guides: 指南
holdings: 持仓
home: 主页
@@ -46,10 +49,12 @@ zh-CN:
llm_usages: LLM 用量
loans: 贷款
lunchflow_items: Lunch Flow
+ mcp: MCP 服务器
merchants: 商户
mercury_items: Mercury
messages: 消息
mfa: 双重验证
+ monobank_items: Monobank
oidc_accounts: OIDC 账户
onboardings: 入门
other_assets: 其他资产
@@ -57,12 +62,14 @@ zh-CN:
payments: 付款
pending_duplicate_merges: 重复项审核
plaid_items: Plaid
+ plan: 计划
preferences: 偏好设置
profile: 个人资料
profiles: 个人资料
properties: 房产
providers: 提供商
recurring_transactions: 循环交易
+ redbark_items: Redbark
registrations: 注册
reports: 报表
rules: 规则
@@ -77,6 +84,7 @@ zh-CN:
sso_identities: SSO 连接
sso_providers: SSO 提供商
subscriptions: 订阅
+ system_health: 系统健康
tags: 标签
trades: 交易
transactions: 交易
diff --git a/config/locales/defaults/zh-CN.yml b/config/locales/defaults/zh-CN.yml
index 65c4cfb2f4..b9d7180c24 100644
--- a/config/locales/defaults/zh-CN.yml
+++ b/config/locales/defaults/zh-CN.yml
@@ -7,6 +7,15 @@ zh-CN:
close: 关闭
global:
expand: 展开
+ mcp:
+ errors:
+ invalid_session_id: 无效的 MCP 会话 ID
+ unsupported_protocol_version: "不支持的 MCP 协议版本:%{version}"
+ oauth:
+ registration:
+ invalid_redirect_uris: redirect_uris 必须使用 https、本地回环 http 或原生应用 URI 方案
+ invalid_client_name: client_name 不能包含双向控制字符
+ reserved_client_name: client_name 保留给第一方应用使用
activerecord:
errors:
messages:
diff --git a/config/locales/mailers/rule_notification_mailer/zh-CN.yml b/config/locales/mailers/rule_notification_mailer/zh-CN.yml
new file mode 100644
index 0000000000..055ab582a1
--- /dev/null
+++ b/config/locales/mailers/rule_notification_mailer/zh-CN.yml
@@ -0,0 +1,16 @@
+---
+zh-CN:
+ rule_notification_mailer:
+ digest:
+ subject:
+ one: "%{product_name} 上有 1 笔新交易匹配了您的规则"
+ other: "%{product_name} 上有 %{count} 笔新交易匹配了您的规则"
+ heading:
+ one: 有 1 笔新交易匹配了您的规则
+ other: 有 %{count} 笔新交易匹配了您的规则
+ intro: 以下交易匹配了规则 "%{rule}":
+ date: 日期
+ name: 名称
+ account: 账户
+ amount: 金额
+ cta: 查看交易
diff --git a/config/locales/models/account/zh-CN.yml b/config/locales/models/account/zh-CN.yml
index 8e2407ff8f..c873fec5ef 100644
--- a/config/locales/models/account/zh-CN.yml
+++ b/config/locales/models/account/zh-CN.yml
@@ -32,3 +32,6 @@ zh-CN:
name_desc:
label: 名称(Z-A)
label_short: 名称 ↓
+ manual:
+ label: 手动(拖动重新排序)
+ label_short: 手动
diff --git a/config/locales/models/assistant/zh-CN.yml b/config/locales/models/assistant/zh-CN.yml
new file mode 100644
index 0000000000..500d16e449
--- /dev/null
+++ b/config/locales/models/assistant/zh-CN.yml
@@ -0,0 +1,7 @@
+---
+zh-CN:
+ assistant:
+ external:
+ model_catalog:
+ default_agent_label: 默认代理 (%{id})
+ named_agent_label: "%{name} (%{id})"
diff --git a/config/locales/models/chat/zh-CN.yml b/config/locales/models/chat/zh-CN.yml
index 9d17d41149..f8c8308679 100644
--- a/config/locales/models/chat/zh-CN.yml
+++ b/config/locales/models/chat/zh-CN.yml
@@ -6,3 +6,4 @@ zh-CN:
temporarily_unavailable: AI 提供商当前暂时不可用,请几分钟后再试。
misconfigured: AI 提供商配置不正确,请联系您的管理员。
default: 生成回复失败,请重试。
+ no_response: 助手未响应。后台工作进程可能已停止,或 AI 尚未完全配置。请重试。
diff --git a/config/locales/models/coinstats_item/zh-CN.yml b/config/locales/models/coinstats_item/zh-CN.yml
index 393ee58453..c00518d12e 100644
--- a/config/locales/models/coinstats_item/zh-CN.yml
+++ b/config/locales/models/coinstats_item/zh-CN.yml
@@ -8,3 +8,5 @@ zh-CN:
wallets_need_setup: "%{count} 个加密账户需要设置..."
processing_holdings: 正在处理持仓...
calculating_balances: 正在计算余额...
+ wallet_linker:
+ no_tokens_found: 未找到该钱包的代币
diff --git a/config/locales/models/family/zh-CN.yml b/config/locales/models/family/zh-CN.yml
new file mode 100644
index 0000000000..eb07c54011
--- /dev/null
+++ b/config/locales/models/family/zh-CN.yml
@@ -0,0 +1,10 @@
+---
+zh-CN:
+ activerecord:
+ attributes:
+ family:
+ ai_prompt_chat_system: 聊天系统提示词
+ ai_prompt_categorizer_openai: 交易分类器提示词 (OpenAI)
+ ai_prompt_categorizer_anthropic: 交易分类器提示词 (Anthropic)
+ ai_prompt_merchant_openai: 商户识别器提示词 (OpenAI)
+ ai_prompt_merchant_anthropic: 商户识别器提示词 (Anthropic)
diff --git a/config/locales/models/goal/zh-CN.yml b/config/locales/models/goal/zh-CN.yml
index 3852b143c2..1736ee68d4 100644
--- a/config/locales/models/goal/zh-CN.yml
+++ b/config/locales/models/goal/zh-CN.yml
@@ -17,8 +17,20 @@ zh-CN:
attributes:
base:
at_least_one_linked_account_required: 请至少选择一个账户为此目标提供资金。
+ missing_exchange_rate: 此目标关联的其中一个账户目前没有可用汇率,因此无法完成。
+ whole_account_conflict_on_restore: 无法恢复此目标:“%{account_name}” 目前已全部预留给“%{goal_name}”。请先在其中一个目标中输入具体金额。
linked_accounts:
must_be_fundable: 所有关联账户必须是现金或投资账户。
must_belong_to_family: 关联账户必须属于与目标相同的家庭。
currency:
locked_after_linked: 目标关联账户后不能更改货币。
+ target_mode:
+ months_requires_maintained: 只有您持续维护的储备金才能将目标设定为支出月数。
+ target_months:
+ blank: 请说明该储备金应覆盖几个月的支出。
+ only_with_months_mode: 支出月数仅在以此方式设定目标时适用。
+ kind:
+ locked_while_released: 在将其转换为储备金之前,请先重新打开此目标。
+ locked_once_consumed: 此目标已记录支出金额,因此不能转换为储备金。
+ target_amount:
+ below_consumed: 设定的目标不能低于该目标已记录的支出金额。
diff --git a/config/locales/models/goal_account/zh-CN.yml b/config/locales/models/goal_account/zh-CN.yml
new file mode 100644
index 0000000000..d75e255e3a
--- /dev/null
+++ b/config/locales/models/goal_account/zh-CN.yml
@@ -0,0 +1,9 @@
+---
+zh-CN:
+ activerecord:
+ errors:
+ models:
+ goal_account:
+ attributes:
+ base:
+ account_already_fully_earmarked: 此账户已全部预留给“%{goal_name}”。请输入金额进行拆分。
diff --git a/config/locales/models/loan/zh-CN.yml b/config/locales/models/loan/zh-CN.yml
new file mode 100644
index 0000000000..d527117aa8
--- /dev/null
+++ b/config/locales/models/loan/zh-CN.yml
@@ -0,0 +1,8 @@
+---
+zh-CN:
+ activerecord:
+ errors:
+ models:
+ loan:
+ invalid_rate_change: 利率变更行需要同时填写生效日期和利率。
+ rate_change_before_origination: 利率变更不能在贷款发放日之前生效。
diff --git a/config/locales/models/merchant/zh-CN.yml b/config/locales/models/merchant/zh-CN.yml
new file mode 100644
index 0000000000..dc2b7b4d3c
--- /dev/null
+++ b/config/locales/models/merchant/zh-CN.yml
@@ -0,0 +1,5 @@
+---
+zh-CN:
+ models:
+ merchant:
+ no_merchant: 无商户
diff --git a/config/locales/models/onchain_wallet_item/zh-CN.yml b/config/locales/models/onchain_wallet_item/zh-CN.yml
new file mode 100644
index 0000000000..e802d91028
--- /dev/null
+++ b/config/locales/models/onchain_wallet_item/zh-CN.yml
@@ -0,0 +1,19 @@
+---
+zh-CN:
+ onchain:
+ chains:
+ arbitrum: Arbitrum
+ base: Base
+ bitcoin: Bitcoin
+ cosmos: Cosmos Hub
+ ethereum: Ethereum
+ gnosis: Gnosis
+ optimism: Optimism
+ polkadot: Polkadot
+ polygon: Polygon
+ solana: Solana
+ institution_name: 自托管钱包
+ onchain_wallet_item:
+ movement:
+ received: 收到 %{quantity} %{symbol}
+ sent: 发送了 %{quantity} %{symbol}
diff --git a/config/locales/models/period/zh-CN.yml b/config/locales/models/period/zh-CN.yml
index 319082bb4a..de30f2269b 100644
--- a/config/locales/models/period/zh-CN.yml
+++ b/config/locales/models/period/zh-CN.yml
@@ -52,3 +52,5 @@ zh-CN:
custom:
label_short: "自定义"
label: "自定义周期"
+ comparison_label: "%{start_date} 至 %{end_date}"
+ range: "%{start_date} – %{end_date}"
diff --git a/config/locales/models/provider/zh-CN.yml b/config/locales/models/provider/zh-CN.yml
new file mode 100644
index 0000000000..21124c66fc
--- /dev/null
+++ b/config/locales/models/provider/zh-CN.yml
@@ -0,0 +1,27 @@
+---
+zh-CN:
+ providers:
+ property_valuation:
+ not_configured: 此房产数据提供商未配置。
+ missing_fields: 请提供名称和完整的美国地址(街道、城市、州和邮政编码)。
+ missing_fields_gb: 请提供名称、街道地址、邮编以及房产的 UPRN。
+ preview_expired: 此房产预览已过期,请重新查询地址。
+ entry_name: "%{provider} 估值"
+ rentcast:
+ errors:
+ no_valuation: RentCast 未返回此地址的估值。
+ not_found: RentCast 找不到与此地址匹配的房产。
+ realie:
+ errors:
+ no_property: Realie 未返回此地址的房产。
+ no_valuation: Realie 未返回此房产的估值。
+ not_found: Realie 找不到与此地址匹配的房产。
+ location_mismatch: Realie 匹配到了位于不同城市或邮编的房产。请仔细核对地址。
+ chimnie:
+ errors:
+ invalid_uprn: UPRN 是最多 12 位的数字。请检查 UPRN 后重试。
+ no_estimate: Chimnie 没有此房产的估值。
+ not_found: Chimnie 找不到具有此 UPRN 的房产。
+ unsupported_property: Chimnie 仅评估住宅房产;此 UPRN 属于商业或商住混合房产。
+ unauthorized: Chimnie 拒绝了该 API 密钥。请在“设置 → 自托管”中检查密钥。
+ insufficient_balance: 您的 Chimnie 账户余额不足以处理此请求。
diff --git a/config/locales/models/provider_warnings/zh-CN.yml b/config/locales/models/provider_warnings/zh-CN.yml
index 485e746c12..249a011998 100644
--- a/config/locales/models/provider_warnings/zh-CN.yml
+++ b/config/locales/models/provider_warnings/zh-CN.yml
@@ -2,3 +2,10 @@
zh-CN:
provider_warnings:
limited_investment_data: "此提供商的投资数据有限。活动标签(买入、卖出、股息)不可用,这可能会影响预算准确性。请考虑创建规则以排除或分类投资交易。"
+ lunchflow_accounts_failed:
+ one: Lunchflow 导入:%{count} 个账户更新失败
+ other: Lunchflow 导入:%{count} 个账户更新失败
+ lunchflow_transactions_failed:
+ one: Lunchflow 导入:%{count} 个账户的交易获取失败
+ other: Lunchflow 导入:%{count} 个账户的交易获取失败
+ lunchflow_import_error: Lunchflow 导入:%{error}
diff --git a/config/locales/models/recurrence_rule/zh-CN.yml b/config/locales/models/recurrence_rule/zh-CN.yml
new file mode 100644
index 0000000000..b7ba5dfef7
--- /dev/null
+++ b/config/locales/models/recurrence_rule/zh-CN.yml
@@ -0,0 +1,35 @@
+---
+zh-CN:
+ activerecord:
+ attributes:
+ recurrence_rule:
+ frequency: 频率
+ interval: 间隔
+ day_of_month: 每月日期
+ weekday: 星期
+ weekday_ordinal: 当月第几周
+ month_of_year: 月份
+ recurring_transaction/recurrence_rules:
+ base: 循环规则:
+ frequency: 频率
+ interval: 间隔
+ day_of_month: 每月日期
+ weekday: 星期
+ weekday_ordinal: 当月第几周
+ month_of_year: 月份
+ errors:
+ models:
+ recurrence_rule:
+ day_spec_required: 请且仅选择每月日期或星期其中之一
+ attributes:
+ weekday:
+ required_for_weekly: 按周循环规则必填
+ weekday_ordinal:
+ not_allowed_for_weekly: 不适用于按周循环规则
+ required_with_weekday: 设置星期时必填
+ not_allowed_without_weekday: 仅在设置星期时适用
+ day_of_month:
+ not_allowed_for_weekly: 不适用于按周循环规则
+ month_of_year:
+ required_for_yearly: 按年循环规则必填
+ not_allowed: 仅适用于按年循环规则
diff --git a/config/locales/models/recurring_allocation/zh-CN.yml b/config/locales/models/recurring_allocation/zh-CN.yml
new file mode 100644
index 0000000000..600b262831
--- /dev/null
+++ b/config/locales/models/recurring_allocation/zh-CN.yml
@@ -0,0 +1,9 @@
+---
+zh-CN:
+ activerecord:
+ errors:
+ models:
+ recurring_allocation:
+ attributes:
+ currency:
+ must_match_occurrence: 必须与期次的币种一致
diff --git a/config/locales/models/recurring_transaction/zh-CN.yml b/config/locales/models/recurring_transaction/zh-CN.yml
index cad8fd3f12..4ee0eb094d 100644
--- a/config/locales/models/recurring_transaction/zh-CN.yml
+++ b/config/locales/models/recurring_transaction/zh-CN.yml
@@ -5,3 +5,31 @@ zh-CN:
models:
recurring_transaction:
merchant_or_name_required: 商户或名称至少必须存在一个
+ attributes:
+ payment_url:
+ invalid_scheme: 必须是有效的 http:// 或 https:// 地址
+ anchor_date:
+ required_for_intervals: 当规则每 2 个或更多周期重复一次时必填
+ bill_type:
+ transfer_shape_mismatch: 仅在设置目标账户时才能为转账
+ expected_amount_min:
+ greater_than_max: 不能大于预期最高金额
+ account:
+ required_for_transfer: 循环转账必须指定账户
+ wrong_family: 必须属于该家庭
+ destination_account:
+ same_as_source: 不能与源账户相同
+ family_mismatch: 必须与源账户属于同一家庭
+ wrong_family: 必须属于该家庭
+ attributes:
+ recurring_transaction:
+ payment_url: 付款链接
+ frequency_interval: 重复间隔
+ recurring_transactions:
+ allocator:
+ missing_rate: 从 %{from} 到 %{to} 没有可用汇率;请明确输入金额
+ unmeasurable: 此交易包含无法转换为 %{currency} 的分配,因此无法计量剩余部分。请添加 %{date} 的汇率或先移除现有付款
+ over_allocated: 分配 %{amount} 超出了交易剩余的 %{capacity} %{currency}
+ entry_exhausted: 此交易的全部金额已应用至其他待付账款
+ already_allocated: 此交易已应用至该账单
+ exceeds_remaining: "%{amount} 超出了本周期剩余的 %{remaining}"
diff --git a/config/locales/models/rule/zh-CN.yml b/config/locales/models/rule/zh-CN.yml
index e48cb69082..c45cb7cb26 100644
--- a/config/locales/models/rule/zh-CN.yml
+++ b/config/locales/models/rule/zh-CN.yml
@@ -7,3 +7,31 @@ zh-CN:
min_actions: 至少必须有一个动作
duplicate_actions: 规则不能有重复动作 %{types}
nested_conditions: 复合条件不能嵌套
+ split_not_alone: 拆分规则不能包含其他动作
+ rule/action:
+ attributes:
+ value:
+ invalid_config: 必须是有效的拆分配置
+ invalid_split_count: 拆分数量必须在 %{min} 到 %{max} 之间
+ split_name_required: "拆分 #%{index} 缺少名称"
+ split_name_too_long: "拆分 #%{index} 名称过长(最多 255 个字符)"
+ split_name_invalid: "拆分 #%{index} 名称包含无效字符"
+ split_type_invalid: "拆分 #%{index} 类型必须为固定金额或百分比"
+ split_share_invalid: "拆分 #%{index} 份额必须为正数"
+ split_category_invalid: "拆分 #%{index} 分类不属于该家庭"
+ split_merchant_invalid: "拆分 #%{index} 商户不属于该家庭"
+ split_tags_invalid: "拆分 #%{index} 包含不属于该家庭的标签"
+ percentages_must_total_100: 百分比总和必须为 100(当前为 %{total})
+ fixed_requires_exact_amount_condition: 固定金额拆分需要一条匹配精确交易金额的规则条件(例如:金额
+ = 42.00),否则各拆分份额无法可靠地合计为每笔匹配交易的总额
+ fixed_shares_must_equal_condition_amount: 拆分份额总和必须等于 %{amount},即此规则条件所要求的确切金额
+ rule/condition:
+ attributes:
+ value:
+ regex_invalid: 不是有效的正则表达式
+ regex_too_complex: 过于复杂,无法安全运行
+ regex_too_long: 过长(最多 %{count} 个字符)
+ regex_backreference: 不能使用后向引用(\1 到 \9)
+ rule:
+ conditions:
+ unsupported_label: 不支持 (%{type})
diff --git a/config/locales/models/sure_import/preflight/zh-CN.yml b/config/locales/models/sure_import/preflight/zh-CN.yml
new file mode 100644
index 0000000000..4f03f0c5ef
--- /dev/null
+++ b/config/locales/models/sure_import/preflight/zh-CN.yml
@@ -0,0 +1,10 @@
+---
+zh-CN:
+ sure_import:
+ preflight:
+ missing_reference: 第 %{line} 行 %{type} 引用的 %{field} %{value} 不存在。
+ skipped_missing_reference: 第 %{line} 行 %{type} 引用的 %{field} %{value} 不存在,导入时将被跳过。
+ skipped_missing_merchant_reference: 第 %{line} 行 %{type} 引用的商户(%{value})未包含在此导出文件中。如果在将提供商分配的商户添加到
+ Sure 导出之前进行了导出,可能会发生这种情况。导入时将不包含该商户。
+ skipped_unnamed_recurring: 第 %{line} 行 %{type} 未命名且引用的商户(%{value})未包含在此导出文件中,导入时将被跳过。
+ provider_merchant_diff: 第 %{line} 行 ProviderMerchant %{name} 已存在,但具有不同的 %{fields}。将保留现有商户。
diff --git a/config/locales/models/tag/zh-CN.yml b/config/locales/models/tag/zh-CN.yml
new file mode 100644
index 0000000000..2f6a572f34
--- /dev/null
+++ b/config/locales/models/tag/zh-CN.yml
@@ -0,0 +1,5 @@
+---
+zh-CN:
+ models:
+ tag:
+ untagged: 未添加标签
diff --git a/config/locales/models/user/zh-CN.yml b/config/locales/models/user/zh-CN.yml
index da484b07ae..7c568742c0 100644
--- a/config/locales/models/user/zh-CN.yml
+++ b/config/locales/models/user/zh-CN.yml
@@ -16,5 +16,7 @@ zh-CN:
attributes:
base:
cannot_deactivate_admin_with_other_users: 存在其他用户时无法删除管理员账户,请先删除所有家庭成员。
+ provider_item_has_other_accounts: 该用户拥有的某些账户关联到了一个提供商连接,而该连接下同时包含属于其他用户的账户。在更改家庭/群组成员身份之前,请先移动或解除关联这些账户。
+ cannot_remove_last_super_admin: 无法移除最后一位活跃超级管理员。请先将其他用户提升为超级管理员。
profile_image:
invalid_file_size: 文件大小必须小于 %{max_megabytes}MB
diff --git a/config/locales/models/wise_item/zh-CN.yml b/config/locales/models/wise_item/zh-CN.yml
new file mode 100644
index 0000000000..fe9a918d74
--- /dev/null
+++ b/config/locales/models/wise_item/zh-CN.yml
@@ -0,0 +1,12 @@
+---
+zh-CN:
+ activerecord:
+ attributes:
+ wise_item:
+ sca_private_key: SCA 私钥
+ errors:
+ models:
+ wise_item:
+ attributes:
+ sca_private_key:
+ encryption_unavailable: 无法存储,因为当前安装未配置 Active Record 加密
diff --git a/config/locales/views/admin/users/zh-CN.yml b/config/locales/views/admin/users/zh-CN.yml
index cab9f88f19..e1cdfe6917 100644
--- a/config/locales/views/admin/users/zh-CN.yml
+++ b/config/locales/views/admin/users/zh-CN.yml
@@ -49,3 +49,4 @@ zh-CN:
update:
success: 用户角色更新成功。
failure: 更新用户角色失败。
+ last_super_admin_error: 无法移除系统中的最后一位超级管理员。