The personal finance app for everyone (by everyone)
Ruby
feat(i18n): add zh-CN translations for TrueLayer and Trading 212 (#4723)
Kenrick Tandrian405999b44021
diff --git a/config/locales/models/provider/zh-CN.yml b/config/locales/models/provider/zh-CN.ymlindex 21124c66fc..176fea630e 100644--- a/config/locales/models/provider/zh-CN.yml+++ b/config/locales/models/provider/zh-CN.yml@@ -1,6 +1,8 @@---zh-CN:providers:+ truelayer:+ description: 通过 TrueLayer 连接到您的英国银行property_valuation:not_configured: 此房产数据提供商未配置。missing_fields: 请提供名称和完整的美国地址(街道、城市、州和邮政编码)。diff --git a/config/locales/models/provider_warnings/zh-CN.yml b/config/locales/models/provider_warnings/zh-CN.ymlindex 249a011998..b817f81701 100644--- a/config/locales/models/provider_warnings/zh-CN.yml+++ b/config/locales/models/provider_warnings/zh-CN.yml@@ -9,3 +9,21 @@ zh-CN:one: Lunchflow 导入:%{count} 个账户的交易获取失败other: Lunchflow 导入:%{count} 个账户的交易获取失败lunchflow_import_error: Lunchflow 导入:%{error}+ truelayer_accounts_failed:+ one: "TrueLayer 导入:%{count} 个账户更新失败"+ other: "TrueLayer 导入:%{count} 个账户更新失败"+ truelayer_transactions_failed:+ one: "TrueLayer 导入:%{count} 个账户的交易获取失败"+ other: "TrueLayer 导入:%{count} 个账户的交易获取失败"+ truelayer_balances_failed:+ one: "TrueLayer 导入:%{count} 个账户的余额获取失败"+ other: "TrueLayer 导入:%{count} 个账户的余额获取失败"+ truelayer_processing_failed:+ one: "TrueLayer 导入:%{count} 个账户无法处理"+ other: "TrueLayer 导入:%{count} 个账户无法处理"+ truelayer_entries_failed:+ one: "TrueLayer 导入:%{count} 笔交易无法导入"+ other: "TrueLayer 导入:%{count} 笔交易无法导入"+ truelayer_scheduling_failed:+ one: "TrueLayer 导入:无法为 %{count} 个账户计划余额更新"+ other: "TrueLayer 导入:无法为 %{count} 个账户计划余额更新"diff --git a/config/locales/views/trading212_items/zh-CN.yml b/config/locales/views/trading212_items/zh-CN.ymlnew file mode 100644index 0000000000..062235dce5--- /dev/null+++ b/config/locales/views/trading212_items/zh-CN.yml@@ -0,0 +1,102 @@+---+zh-CN:+ providers:+ trading212:+ name: Trading 212+ connection_description: 通过 API 密钥连接 Trading 212 投资账户+ institution_name: Trading 212+ trading212_items:+ defaults:+ name: Trading 212+ trading212_item:+ deletion_in_progress: 正在删除+ environment_label_live: 实盘账户+ environment_label_demo: 模拟账户+ syncing: 同步中+ requires_update: API 密钥需要处理+ error: 错误+ synced: 上次同步于 %{time} 前。%{summary}。+ never_synced: 从未同步。+ setup_accounts: 设置账户+ delete: 删除+ accounts_need_setup: 账户需要设置+ accounts_need_setup_description: 您的 Trading 212 账户需要关联到一个 Sure 账户。+ no_accounts_discovered: 尚未发现任何 Trading 212 账户。+ no_accounts_discovered_description: 保存 API 密钥后执行一次同步以发现您的账户。+ setup_accounts:+ page_title: 设置 Trading 212 账户+ dialog_title: 设置您的 Trading 212 账户+ subtitle: 关联您的 Trading 212 投资账户。+ info_box:+ title: Trading 212 API 导入+ items:+ item_1: 当前持仓(含价格与数量)+ item_2: 完整订单记录(买入与卖出)+ item_3: 股息与现金交易+ status:+ fetching_accounts: 正在从 Trading 212 获取账户...+ no_accounts_found_title: 未找到账户。+ no_accounts_found_description: Sure 找不到 Trading 212 账户。请检查您的 API 密钥是否有效。+ available_accounts:+ title: 可用账户+ account_type_investment: 投资账户+ account_summary: "%{account_type} • 余额:%{balance}"+ account_id: "账户 ID:%{account_id}"+ link_existing:+ description: 或将发现的 Trading 212 账户关联到现有的手动投资账户。+ manual_account_option: "%{name}(%{balance})"+ select_prompt: 选择一个账户...+ linked_accounts:+ title: 已关联+ linked_to_html: "已关联到:%{account}"+ buttons:+ refresh: 刷新+ cancel: 取消+ back_to_settings: 返回设置+ create_selected_accounts: 创建所选账户+ link: 关联+ done: 完成+ sync:+ status:+ checking_credentials: 正在检查 Trading 212 凭据...+ importing_account: 正在导入 Trading 212 账户...+ checking_configuration: 正在检查账户配置...+ accounts_need_setup:+ one: 1 个 Trading 212 账户需要设置...+ other: "%{count} 个 Trading 212 账户需要设置..."+ processing_activity: 正在处理持仓与活动...+ calculating_balances: 正在计算余额...+ sync_status:+ no_accounts: 尚未发现任何 Trading 212 账户+ all_linked:+ one: 已关联 1 个账户+ other: 已关联 %{count} 个账户+ partial: 已关联 %{linked} 个,%{unlinked} 个需要设置+ select_existing_account:+ title: 关联 Trading 212 账户+ no_accounts_available: 尚无可用的未关联 Trading 212 账户。+ run_sync_hint: 保存 API 密钥后,请从“设置 > 提供商”执行一次同步。+ wait_for_sync: 请等待账户发现同步完成。+ balance: 余额+ link: 关联+ cancel: 取消+ create:+ success: 已成功配置 Trading 212。+ update:+ success: 已成功更新 Trading 212 配置。+ destroy:+ success: 已计划删除 Trading 212 连接。+ select_accounts:+ not_configured: 尚未配置 Trading 212。+ link_existing_account:+ not_found: 找不到账户或 Trading 212 配置。+ only_manual_investment: 只有手动投资账户才能关联到 Trading 212。+ already_linked: 此 Trading 212 账户已关联。+ success: 已成功关联到 Trading 212 账户。+ failed: 关联 Trading 212 账户失败。+ complete_account_setup:+ success:+ one: 已成功创建 %{count} 个 Trading 212 账户。+ other: 已成功创建 %{count} 个 Trading 212 账户。+ none_selected: 未选择任何账户。+ none_created: 未创建任何账户。diff --git a/config/locales/views/truelayer_items/zh-CN.yml b/config/locales/views/truelayer_items/zh-CN.ymlnew file mode 100644index 0000000000..5bbaf67fa4--- /dev/null+++ b/config/locales/views/truelayer_items/zh-CN.yml@@ -0,0 +1,113 @@+---+zh-CN:+ truelayer_items:+ default_name: TrueLayer 连接+ redirect_blocked: 无法打开 TrueLayer,请重试。+ create:+ success: TrueLayer 凭据已保存。您现在可以连接银行。+ update:+ success: TrueLayer 凭据已更新。+ destroy:+ success: 已计划删除 TrueLayer 连接。+ connect:+ credentials_required: 请先添加您的 TrueLayer Client ID 和 Client Secret。+ sync:+ not_connected: 同步前请先连接银行。+ callback:+ authorization_error: TrueLayer 授权失败:%{error}+ authorization_failed: 无法完成 TrueLayer 连接:%{message}+ invalid_callback: TrueLayer 登录已过期或与此会话不匹配。请重新开始。+ success: 银行已连接。正在导入您的账户;同步完成后即可进行设置。+ truelayer_item:+ consent_expiring: 银行访问权限将于 %{date} 到期+ delete: 删除连接+ deletion_in_progress: 正在删除中...+ error: 错误+ history_missed: 较早的历史记录未导入。重新连接以获取历史记录。+ no_accounts_description: 此连接尚未关联任何账户。+ no_accounts_title: 无账户+ reconnect: 重新连接+ requires_update: 重新连接此银行以继续同步+ setup_action: 设置新账户+ setup_description: 已关联 %{total} 个账户中的 %{linked} 个。为您新导入的 TrueLayer 账户选择账户类型。+ setup_needed: 新账户已准备就绪,需要设置+ status: 上次同步于 %{timestamp} 前+ status_never: 从未同步+ status_with_summary: 上次同步于 %{timestamp} 前 • %{summary}+ syncing: 同步中...+ sync_status:+ no_accounts: 未找到账户+ synced:+ one: 已同步 %{count} 个账户+ other: 已同步 %{count} 个账户+ partial_setup:+ one: 已同步 %{linked} 个,%{unlinked} 个需要设置+ other: 已同步 %{linked} 个,%{unlinked} 个需要设置+ subtype_select:+ placeholder:+ subtype: 选择子类型+ type: 选择类型+ setup_accounts:+ account_type_label: 账户类型:+ all_accounts_linked: 您的所有 TrueLayer 账户均已设置。+ cancel: 取消+ choose_account_type: 为每个 TrueLayer 账户选择正确的账户类型:+ create_accounts: 创建账户+ creating_accounts: 正在创建账户...+ kind_account: 银行账户+ kind_card: 卡片+ no_accounts_to_setup: 没有需要设置的账户+ page_title: 设置 TrueLayer 账户+ subtitle: 为您导入的账户选择正确的账户类型+ sync_start_date_help: 此日期之前的交易将被忽略。留空以保留银行提供的全部交易。+ sync_start_date_label: 导入交易起始日期+ title: 设置您的 TrueLayer 账户+ account_types:+ skip: 跳过此账户+ depository: 支票或储蓄账户+ credit_card: 信用卡+ loan: 贷款或抵押贷款+ subtype_labels:+ depository: 账户子类型:+ credit_card: ""+ loan: 贷款类型:+ subtype_messages:+ credit_card: 信用卡将自动设置为信用卡账户。+ complete_account_setup:+ all_skipped: 已跳过所有账户。未创建任何账户。+ creation_failed: 创建账户失败:%{error}+ success:+ one: 已创建 %{count} 个账户。+ other: 已创建 %{count} 个账户。+ select_existing_account:+ cancel: 取消+ description: 选择要关联的 TrueLayer 账户。其交易将同步到此账户中。+ link_account: 关联账户+ no_accounts: 没有未关联的 TrueLayer 账户。请先在“设置 → 提供商”中连接银行。+ title: 将 %{account_name} 关联到 TrueLayer+ link_existing_account:+ already_linked: 该 TrueLayer 账户已关联到其他账户。+ only_manual: 只有手动账户才能关联到 TrueLayer。+ success: 已将 %{account_name} 关联到 TrueLayer。+ settings:+ providers:+ truelayer_panel:+ client_id_label: Client ID+ client_id_placeholder: 例如 sure-abc123(模拟银行为 sandbox-...)+ client_secret_label: Client Secret+ client_secret_placeholder_new: 粘贴您的 Client Secret+ client_secret_placeholder_update: 留空以保留当前密钥+ connect_bank: 连接银行+ consent_expires: 银行访问权限将于 %{date} 到期+ reconnect: 重新连接+ reconnect_required: 需要重新连接+ remove: 移除+ remove_confirm: 确定要移除此银行连接吗?已关联的账户将保留历史记录,但会停止同步。+ save_credentials: 保存凭据+ step_1_html: 在 %{link} 创建应用并复制其 Client ID 和 Client Secret。+ step_2_html: 将 %{callback_url} 添加到应用的“Allowed redirect URIs”中。+ step_3: 在下方保存凭据,然后连接银行。在您批准访问权限后的几分钟内,Sure 将导入完整的历史记录。+ step_4: 英国银行会要求您每 90 天重新连接一次;Sure 会在访问权限到期前显示“重新连接”按钮。+ sync: 同步+ syncing: 同步中...+ update_credentials: 更新凭据