From 4a4b4cb9646e9c55983452f4cc62a3a91b028b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B3=E6=B0=B8=E6=9D=B0?= <723809534@qq.com> Date: Thu, 6 Jun 2024 11:15:27 +0800 Subject: [PATCH] add chinese i18n --- app/controllers/accounts_controller.rb | 3 ++- config/application.rb | 2 +- config/locales/en.yml | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 38cf5477b..a49b6f825 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -7,7 +7,8 @@ class AccountsController < ApplicationController 'fr-FR' => 'French (France)', 'es-ES' => 'Spanish (Spain)', 'pt-PT' => 'Portuguese (Portugal)', - 'de-DE' => 'German (Germany)' + 'de-DE' => 'German (Germany)', + 'zh-CN' => 'Chinese (China)' }.freeze before_action :load_account diff --git a/config/application.rb b/config/application.rb index ffb886f89..7082eca83 100644 --- a/config/application.rb +++ b/config/application.rb @@ -25,7 +25,7 @@ class Application < Rails::Application config.active_storage.draw_routes = ENV['MULTITENANT'] != 'true' - config.i18n.available_locales = %i[en en-US en-GB es-ES fr-FR pt-PT de-DE es it de fr pl uk cs pt he nl ar ko] + config.i18n.available_locales = %i[en en-US en-GB es-ES fr-FR pt-PT de-DE es it de fr pl uk cs pt he nl ar ko zh] config.i18n.fallbacks = [:en] config.exceptions_app = ->(env) { ErrorsController.action(:show).call(env) } diff --git a/config/locales/en.yml b/config/locales/en.yml index ced578868..7ef27adf4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -278,6 +278,27 @@ ko: download_documents: 문서 다운로드 downloading: 다운로드 중 completed_successfully: 성공적으로 완료됨 + +zh: &zh + email: 电子邮件 + digitally_signed_by: 数字签名者 + role: 角色 + provide_your_email_to_start: 提供您的电子邮件以继续 + start: 开始 + starting: 开始中 + form_has_been_deleted_by_html: '%{name} 您访问的页面已被删除.' + invited_by_html: '%{name} 网页邀请.' + you_have_been_invited_to_submit_a_form: 已邀请您填写表单. + verification_code_code: '验证码: %{code}' + signed_on_time: '签署时间: %{time}' + form_has_been_submitted_already: 表单已经提交. + send_copy_to_email: 发送副本到电子邮件 + sending: 发送中 + resubmit: 重新发送 + or: 或者 + download_documents: 下载文件 + downloading: 下载中 + completed_successfully: 已完成 en-US: <<: *en @@ -302,3 +323,6 @@ pt-PT: de-DE: <<: *de + +zh-CN: + <<: *zh \ No newline at end of file