From 942c961cd11b5ccf52d7356afd93faec0fa7acb1 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Mon, 22 Jul 2024 18:52:40 +0300 Subject: [PATCH] add it locale --- app/controllers/accounts_controller.rb | 3 ++- config/application.rb | 2 +- config/locales/en.yml | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 38cf5477..2372887f 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)', + 'it-IT' => 'Italian (Italy)' }.freeze before_action :load_account diff --git a/config/application.rb b/config/application.rb index a1ab003c..a120c74a 100644 --- a/config/application.rb +++ b/config/application.rb @@ -25,7 +25,7 @@ module DocuSeal 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 it-IT es it de fr pl uk cs pt he nl ar ko] 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 76299873..bcf4e2f7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -104,7 +104,7 @@ es: &es by_creating_an_account_you_agree_to_our_html: 'Al crear una cuenta, aceptas nuestra Política de Privacidad y Términos de Servicio.' enter_email_to_continue: Ingresa tu correo electrónico para continuar -it: +it: &it role: Rôle verification_code_code: 'Codice di verifica: %{code}' email: Email @@ -574,3 +574,6 @@ pt-PT: de-DE: <<: *de + +it-IT: + <<: *it