Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add chinese i18n #289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/controllers/accounts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down
24 changes: 24 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<span class="font-semibold">%{name}</span> 您访问的页面已被删除.'
invited_by_html: '<span class="font-semibold">%{name}</span> 网页邀请.'
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
Expand All @@ -302,3 +323,6 @@ pt-PT:

de-DE:
<<: *de

zh-CN:
<<: *zh