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 Wise and Questrade (#4667)

Kenrick Tandrian731042c2972a
diff --git a/config/locales/views/questrade_items/zh-CN.yml b/config/locales/views/questrade_items/zh-CN.yml
new file mode 100644
index 0000000000..b125bdd535
--- /dev/null
+++ b/config/locales/views/questrade_items/zh-CN.yml
@@ -0,0 +1,257 @@
+---
+zh-CN:
+ questrade_items:
+ default_name: Questrade 连接
+ sync_status:
+ no_accounts: 未找到账户
+ synced:
+ one: 已同步 %{count} 个账户
+ other: 已同步 %{count} 个账户
+ synced_with_setup: 已同步 %{linked} 个,%{unlinked} 个需要设置
+ institution_summary:
+ none: 未连接任何机构
+ count:
+ one: "%{count} 个机构"
+ other: "%{count} 个机构"
+ errors:
+ provider_not_configured: Questrade 提供商尚未配置
+ sync:
+ status:
+ importing: 正在从 Questrade 导入账户...
+ processing: 正在处理持仓和活动...
+ calculating: 正在计算余额...
+ importing_data: 正在导入账户数据...
+ checking_setup: 正在检查账户配置...
+ needs_setup: 有 %{count} 个账户需要设置...
+ success: 已开始同步
+ panel:
+ eyebrow: 设置 · 仅限桌面端
+ help_text: Questrade API 文档
+ disconnect: 断开连接
+ disconnect_confirm: 确定要断开 Questrade 吗?这将删除连接并解除其已同步账户的关联。
+ steps:
+ s1_html: '在桌面端浏览器登录 <a href="https://my.questrade.com" target="_blank" rel="noopener noreferrer" class="text-primary font-medium underline">Questrade 门户</a>。移动应用中不提供 API 设置。'
+ s2: 打开 Settings(设置),并在 General settings(常规设置)下编辑 IQ API 设置。
+ s3_html: 在 API 访问弹窗中,点击 <strong>My applications</strong>(我的应用程序)下的 <strong>Manage</strong>(管理)。
+ s4: 输入名称和描述注册一个个人应用程序,然后保存。
+ s5: 添加新设备并生成令牌。
+ s6: 将生成的令牌粘贴在下方并保存。
+ setup_instructions: "设置说明:"
+ step_1: 访问您的 Questrade 仪表板获取凭据
+ step_2: 在下方输入您的凭据并点击“保存”按钮
+ step_3: 连接成功后,前往“账户”选项卡设置新账户
+ field_descriptions: "字段说明:"
+ optional: "(可选)"
+ required: "(必填)"
+ optional_with_default: "(可选,默认为 %{default_value})"
+ save_button: 保存配置
+ update_button: 更新配置
+ token_refresh_hint: Questrade 令牌会在每次账户同步时自动续期。如果连接超过 7 天未同步而失效,在此处粘贴新令牌即可重新激活,无需断开连接。
+ status_configured_html: '已配置并可正常使用。访问 <a href="%{accounts_path}" class="link">账户</a> 选项卡以管理和设置账户。'
+ status_not_configured: 未配置
+ fields:
+ refresh_token:
+ label: 刷新令牌 (Refresh Token)
+ description: 您的 Questrade 刷新令牌
+ placeholder_new: 在此粘贴刷新令牌
+ placeholder_update: 输入新的刷新令牌以更新
+ api_server:
+ label: API 服务器
+ description: 您的 Questrade API 服务器
+ placeholder_new: 在此粘贴 API 服务器地址
+ placeholder_update: 输入新的 API 服务器地址以更新
+ create:
+ success: Questrade 连接创建成功
+ update:
+ success: Questrade 连接已更新
+ destroy:
+ success: Questrade 连接已移除
+ index:
+ title: Questrade 连接
+ loading:
+ loading_message: 正在加载 Questrade 账户...
+ loading_title: 正在加载
+ link_accounts:
+ all_already_linked:
+ one: 所选账户 (%{names}) 已经关联
+ other: 所有 %{count} 个所选账户均已关联:%{names}
+ api_error: "API 错误:%{message}"
+ invalid_account_names:
+ one: 无法关联名称为空的账户
+ other: 无法关联 %{count} 个名称为空的账户
+ link_failed: 关联账户失败
+ no_accounts_selected: 请至少选择一个账户
+ no_api_key: 未找到 Questrade API 密钥。请在提供商设置中进行配置。
+ partial_invalid: 成功关联 %{created_count} 个账户,%{already_linked_count} 个之前已关联,%{invalid_count} 个账户名称无效
+ partial_success: "成功关联 %{created_count} 个账户。另有 %{already_linked_count} 个账户之前已关联:%{already_linked_names}"
+ success:
+ one: 成功关联 %{count} 个账户
+ other: 成功关联 %{count} 个账户
+ questrade_item:
+ kind: 证券经纪
+ accounts_need_setup: 账户需要设置
+ delete: 删除连接
+ deletion_in_progress: 正在删除...
+ error: 错误
+ more_accounts_available:
+ one: 还有 %{count} 个账户可用
+ other: 还有 %{count} 个账户可用
+ no_accounts_description: 此连接尚未关联任何账户。
+ no_accounts_title: 无账户
+ provider_name: Questrade
+ requires_update: 连接需要更新
+ setup_action: 设置新账户
+ setup_description: 已关联 %{linked} / %{total} 个账户。为新导入的 Questrade 账户选择账户类型。
+ setup_needed: 新账户已准备好设置
+ status: 已于 %{timestamp}前同步
+ status_never: 从未同步
+ status_with_summary: 上次同步于 %{timestamp}前 - %{summary}
+ syncing: 正在同步...
+ total: 总计
+ unlinked: 未关联
+ update_credentials: 更新凭据
+ select_accounts:
+ accounts_selected: 个账户已选择
+ api_error: "API 错误:%{message}"
+ cancel: 取消
+ configure_name_in_provider: 无法导入 — 请在 Questrade 中配置账户名称
+ description: 选择要关联到您的 %{product_name} 账户的账户。
+ link_accounts: 关联所选账户
+ no_accounts_found: 未找到账户。请检查您的 API 密钥配置。
+ no_api_key: Questrade API 密钥未配置。请在设置中进行配置。
+ no_credentials_configured: 请先在提供商设置中配置您的 Questrade 凭据。
+ no_name_placeholder: (无名称)
+ title: 选择 Questrade 账户
+ select_existing_account:
+ page_title: 关联 Questrade 账户
+ dialog_title: 关联到 Questrade 账户
+ linking_label: 关联中
+ none_available: 没有可用的未关联 Questrade 账户。
+ buttons:
+ cancel: 取消
+ link: 关联
+ account_already_linked: 此账户已关联至某个提供商
+ all_accounts_already_linked: 所有 Questrade 账户均已关联
+ api_error: "API 错误:%{message}"
+ balance_label: "余额:"
+ cancel: 取消
+ cancel_button: 取消
+ configure_name_in_provider: 无法导入 — 请在 Questrade 中配置账户名称
+ connect_hint: 连接 Questrade 账户以启用自动同步。
+ description: 选择要与此账户关联的 Questrade 账户。交易将自动同步并去重。
+ header: 与 Questrade 关联
+ link_account: 关联账户
+ link_button: 关联此账户
+ linking_to: "正在关联至:"
+ no_account_specified: 未指定账户
+ no_accounts: 未找到未关联的 Questrade 账户。
+ no_accounts_found: 未找到 Questrade 账户。请检查您的 API 密钥配置。
+ no_api_key: Questrade API 密钥未配置。请在设置中进行配置。
+ no_credentials_configured: 请先在提供商设置中配置您的 Questrade 凭据。
+ no_name_placeholder: (无名称)
+ settings_link: 前往提供商设置
+ subtitle: 将此账户连接到您的某个 Questrade 账户
+ title: 将 %{account_name} 与 Questrade 关联
+ link_existing_account:
+ account_already_linked: 此账户已关联至某个提供商
+ api_error: "API 错误:%{message}"
+ invalid_account_name: 无法关联名称为空的账户
+ provider_account_already_linked: 此 Questrade 账户已关联至另一个账户
+ provider_account_not_found: 未找到 Questrade 账户
+ missing_parameters: 缺少必需参数
+ no_api_key: 未找到 Questrade API 密钥。请在提供商设置中进行配置。
+ success: 已成功将 %{account_name} 与 Questrade 关联
+ setup_accounts:
+ page_title: 设置 Questrade 账户
+ dialog_title: 设置您的 Questrade 账户
+ all_linked: 所有 Questrade 账户均已关联。
+ import_as: 导入为
+ buttons:
+ cancel: 取消
+ create: 创建账户
+ done: 完成
+ types:
+ investment: 投资
+ depository: 现金 / 储蓄存款
+ skip: 跳过此账户
+ account_type_label: "账户类型:"
+ accounts_count:
+ one: 有 %{count} 个账户可用
+ other: 有 %{count} 个账户可用
+ all_accounts_linked: 您的所有 Questrade 账户均已设置完毕。
+ api_error: "API 错误:%{message}"
+ creating: 正在创建账户...
+ fetch_failed: 获取账户失败
+ import_selected: 导入所选账户
+ instructions: 选择要从 Questrade 导入的账户。您可以选择多个账户。
+ no_accounts: 此 Questrade 连接未找到未关联的账户。
+ no_accounts_to_setup: 没有需要设置的账户
+ no_api_key: Questrade API 密钥未配置。请检查您的连接设置。
+ select_all: 全选
+ account_types:
+ skip: 跳过此账户
+ depository: 活期或储蓄账户
+ credit_card: 信用卡
+ investment: 投资账户
+ crypto: 加密货币账户
+ loan: 贷款或房贷
+ other_asset: 其他资产
+ subtype_labels:
+ depository: "账户子类型:"
+ credit_card: ""
+ investment: "投资类型:"
+ crypto: ""
+ loan: "贷款类型:"
+ other_asset: ""
+ subtype_messages:
+ credit_card: 信用卡将自动设置为信用卡账户。
+ other_asset: 其他资产无需额外选项。
+ crypto: 加密货币账户将用于追踪持仓和交易。
+ subtypes:
+ depository:
+ checking: 活期支票账户
+ savings: 储蓄账户
+ hsa: 健康储蓄账户 (HSA)
+ cd: 大额定期存单 (CD)
+ money_market: 货币市场账户
+ investment:
+ brokerage: 证券经纪账户
+ pension: 养老金
+ retirement: 退休金账户
+ "401k": "401(k)"
+ roth_401k: "Roth 401(k)"
+ "403b": "403(b)"
+ tsp: 节俭储蓄计划 (TSP)
+ "529_plan": 529 教育储蓄计划
+ hsa: 健康储蓄账户 (HSA)
+ mutual_fund: 共同基金
+ ira: 传统 IRA
+ roth_ira: Roth IRA
+ angel: 天使投资
+ loan:
+ mortgage: 房屋抵押贷款
+ student: 学生贷款
+ auto: 汽车贷款
+ other: 其他贷款
+ balance: 余额
+ cancel: 取消
+ choose_account_type: "为每个 Questrade 账户选择正确的账户类型:"
+ create_accounts: 创建账户
+ creating_accounts: 正在创建账户...
+ historical_data_range: "历史数据范围:"
+ subtitle: 选择如何导入每个账户
+ sync_start_date_help: 选择要同步多长时间的历史交易。
+ sync_start_date_label: "开始同步交易的起始日期:"
+ title: 设置您的 Questrade 账户
+ setup_required:
+ title: 请先连接 Questrade
+ not_configured_title: Questrade 尚未连接
+ not_configured_description: 在“提供商设置”下添加您的 Questrade 连接,然后再返回此处关联账户。
+ go_to_provider_settings: 前往提供商设置
+ complete_account_setup:
+ all_skipped: 已跳过所有账户。未创建任何账户。
+ creation_failed: "创建账户失败:%{error}"
+ no_accounts: 没有需要设置的账户。
+ success: 成功创建 %{count} 个账户。
+ preload_accounts:
+ no_credentials_configured: 请先在“提供商设置”中配置您的 Questrade 凭据。
diff --git a/config/locales/views/wise_items/zh-CN.yml b/config/locales/views/wise_items/zh-CN.yml
index de439c031b..a6afc3dbd9 100644
--- a/config/locales/views/wise_items/zh-CN.yml
+++ b/config/locales/views/wise_items/zh-CN.yml
@@ -1,5 +1,163 @@
+---
zh-CN:
wise_items:
+ profile_types:
+ personal: 个人
+ business: 企业
+ entries:
+ default_name: Wise 交易
+ fee_name: Wise 手续费
+ activities:
+ jar_deposit: 转入 Jar 储蓄罐
+ jar_withdrawal: 从 Jar 储蓄罐转出
+ transfer_to_jar: 转入 %{jar}
+ transfer_from_jar: 从 %{jar} 转出
+ interest: Wise 利息
+ asset_fee: Wise Assets 费用
+ default_name: Wise 活动
+ sync_status:
+ no_accounts: 未找到账户
+ all_synced:
+ one: 已同步 %{count} 个账户
+ other: 已同步 %{count} 个账户
+ partial_setup: 已同步 %{synced} 个,%{pending} 个需要设置
+ create:
+ no_profiles_found: 未找到任何 Wise 用户档案。请检查您的 API 令牌。
+ invalid_token: API 令牌无效。请检查后重试。
+ connection_failed: 无法连接到 Wise。请稍后重试。
+ destroy:
+ success: 已移除 Wise 连接
+ update:
+ success: 已更新 Wise 连接
+ sync:
+ success: 已开始同步
+ syncer:
+ importing_accounts: 正在从 Wise 导入账户...
+ checking_account_configuration: 正在检查账户配置...
+ accounts_need_setup:
+ one: 有 %{count} 个账户需要设置...
+ other: 有 %{count} 个账户需要设置...
+ processing_transactions: 正在处理交易...
+ calculating_balances: 正在计算余额...
+ credentials_invalid: Wise API 令牌无效或权限不足
+ failed: 同步失败。请重试或联系支持人员。
+ import_failed: Wise 导入失败。
+ accounts_failed:
+ one: 有 %{count} 个余额导入失败。
+ other: 有 %{count} 个余额导入失败。
+ transactions_failed:
+ one: 有 %{count} 个余额的交易导入失败。
+ other: 有 %{count} 个余额的交易导入失败。
+ account_processing_failed:
+ one: 有 %{count} 个 Wise 账户在处理时失败。
+ other: 有 %{count} 个 Wise 账户在处理时失败。
+ account_sync_failed:
+ one: 无法计划 %{count} 个 Wise 账户的同步。
+ other: 无法计划 %{count} 个 Wise 账户的同步。
provider_panel:
+ add_connection: 添加 Wise 连接
+ token_label: API 令牌
+ token_placeholder: 粘贴您的 Wise 个人 API 令牌
+ keep_token_placeholder: 留空以保留当前令牌
+ connection_name_label: 连接名称
+ connection_name_placeholder: Wise 个人
+ sync_start_date_label: 导入交易的起始日期
+ sync_start_date_help: 将从此日期起导入 Wise 对账单。保留默认设置可导入最多一年的历史记录。
+ import_all_history_label: 导入完整交易历史
+ import_all_history_help: 获取所有历史 Wise 对账单,而不仅限于最近一年。
+ connect: 连接 Wise
+ update_connection: 更新连接
+ setup_accounts: 设置账户
+ sync: 同步
+ disconnect: 断开连接
+ disconnect_label: 断开 %{name}
+ disconnect_confirm: 确定要断开 %{name} 吗?这将删除所有已同步的账户数据。
+ sandbox_note_html: 测试时请使用<strong>沙盒 (sandbox)</strong> 基础 URL(<code>https://api.wise-sandbox.com</code>)。在您的环境中设置 <code>WISE_BASE_URL</code>。
+ encryption_warning:
+ title: 未配置数据库加密
+ message: 在生产环境中添加 Wise 令牌之前,请配置 Active Record 加密密钥。未经加密,令牌将以明文存储。
instructions:
+ sign_in_html: 访问 %{link} 并登录您的账户
open_tokens: 前往 Settings → Connect and manage apps → Developer tools → API tokens
+ create_token: 创建一个具有只读访问权限的新个人 API 令牌
+ copy_token_html: 复制令牌并粘贴在下方。Sure 仅使用它来同步您的余额和交易。
+ sca:
+ title: 强客户身份认证 (SCA)
+ description: Wise 需要签名的单次令牌质询以读取完整交易对账单(包括收款)。请在此处生成密钥对并向 Wise 注册公钥以启用此功能。
+ public_key_label: 公钥 (PEM)
+ registered_help_html: 向 Wise 注册此公钥:Settings → Connect and manage apps → Developer tools → Public keys → Add public key。
+ copy: 复制
+ copied: 已复制!
+ generate: 生成密钥对
+ regenerate: 重新生成密钥对
+ regenerate_confirm: 这将生成新的密钥对。在您于 Wise 账户中自行删除之前,Wise 将继续接受先前的公钥 — Sure 无法远程吊销它。您需要先向 Wise 注册新公钥,对账单才能恢复同步。是否继续?
+ provider_connection:
+ default_name: Wise
+ default_description: 连接您的 Wise 多币种账户
+ name: Wise — %{name}
+ description: 使用 %{name} 连接
+ link_profiles:
+ session_expired: 会话已过期。请尝试重新连接。
+ no_profiles_selected: 请至少选择一个用户档案。
+ already_connected: 所有选中的用户档案均已连接。
+ success:
+ one: 已成功连接 %{count} 个 Wise 用户档案
+ other: 已成功连接 %{count} 个 Wise 用户档案
+ select_profiles:
+ session_expired: 会话已过期。请尝试重新连接。
+ title: 选择 Wise 用户档案
+ subtitle: 选择要连接的用户档案
+ description: 您的 Wise 账户有多个用户档案。请选择您想与 Sure 同步的档案。
+ unnamed_profile: (未命名用户档案)
+ already_connected_label: 已连接
+ connect: 连接选中的用户档案
+ cancel: 取消
+ wise_item:
+ deletion_in_progress: 正在删除...
+ syncing: 正在同步...
+ error: 同步错误
+ status: 已于 %{timestamp}前同步
+ status_never: 从未同步
+ status_with_summary: 上次同步于 %{timestamp}前 — %{summary}
+ delete: 断开连接
+ setup_needed: 新账户已准备好设置
+ setup_description: 已关联 %{linked} / %{total} 个账户。为您的 Wise 币种余额创建 Sure 账户。
+ setup_action: 设置账户
+ no_accounts_title: 尚未关联任何账户
+ no_accounts_description: 运行同步以发现您的 Wise 余额,然后将其关联至 Sure 账户。
+ setup_accounts:
+ title: 设置 Wise 账户
+ subtitle: 关联您的 Wise 币种余额
+ description: 为您想要追踪的每个 Wise 币种余额创建一个 Sure 账户。每种货币将作为独立的账户。
+ no_accounts_to_setup: 所有账户均已设置完毕
+ all_accounts_linked: 您的所有 Wise 币种余额均已关联至 Sure 账户。
+ create_account: 创建账户
+ done: 完成
+ select_accounts:
+ title: 选择 Wise 余额
+ description: 选择您要关联至 %{product_name} 账户的 Wise 币种余额。
+ no_accounts_found: 所有 Wise 余额均已关联至 Sure 账户。
+ no_connection: 未找到 Wise 连接。请先在提供商设置中连接 Wise。
+ link_account: 关联余额
+ cancel: 取消
+ select_existing_account:
+ title: 将 %{account_name} 与 Wise 关联
+ description: 选择要与此账户关联的 Wise 币种余额。交易将自动同步。
+ no_accounts_found: 未找到未关联的 Wise 余额。
+ link_account: 关联余额
+ cancel: 取消
+ link_accounts:
+ not_found: 未找到 Wise 余额。
+ success: 已成功将 Wise 余额关联至账户。
+ failed: 关联 Wise 余额失败。请重试。
+ link_existing_account:
+ not_found: 未找到账户或 Wise 余额。
+ success: 已成功将 %{account_name} 与 Wise 关联
+ failed: 关联账户失败。请重试。
+ complete_account_setup:
+ not_found: 未找到 Wise 余额。
+ success: 账户创建并关联成功。
+ failed: 创建账户失败。请重试。
+ generate_sca_keypair:
+ success: 已生成新的 SCA 密钥对。向 Wise 注册公钥以完成启用。
+ failed: 生成新的 SCA 密钥对失败。请重试。