diff --git a/Gemfile b/Gemfile index bc34700..3b9dbb8 100644 --- a/Gemfile +++ b/Gemfile @@ -19,7 +19,7 @@ gem "decidim-idcat_mobil", "~> 0.3.0" gem "decidim-cdtb" gem "bootsnap", "~> 1.3" -gem "wicked_pdf", "~> 2.1" +gem "wicked_pdf", "~> 2.7.0" # Blob storage in the cloud gem "azure-storage-blob" diff --git a/Gemfile.lock b/Gemfile.lock index dfca4e5..5a55c54 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -914,7 +914,7 @@ GEM websocket-extensions (0.1.5) wicked (1.4.0) railties (>= 3.0.7) - wicked_pdf (2.8.0) + wicked_pdf (2.7.0) activesupport wisper (2.0.1) wisper-rspec (1.1.0) @@ -953,7 +953,7 @@ DEPENDENCIES spring (~> 2.0) spring-watcher-listen (~> 2.0) web-console (~> 4.0) - wicked_pdf (~> 2.1) + wicked_pdf (~> 2.7.0) RUBY VERSION ruby 3.0.2p107 diff --git a/config/initializers/webpacker.rb b/config/initializers/webpacker.rb new file mode 100644 index 0000000..7e08ff0 --- /dev/null +++ b/config/initializers/webpacker.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# This is a fix when sending the customized survey answer confirmation email +require "webpacker/version" diff --git a/config/locales/ca.yml b/config/locales/ca.yml new file mode 100644 index 0000000..995a653 --- /dev/null +++ b/config/locales/ca.yml @@ -0,0 +1,10 @@ +--- +ca: + # Remove when create the translations in Decidim + decidim: + surveys: + survey_confirmation_mailer: + confirmation: + body: Has respost correctament el qüestionari %{questionnaire_title} dins de %{participatory_space} + subject: Confirmació de resposta al qüestionari %{questionnaire_title} + export_name: Repostes del qüestionari diff --git a/config/locales/es.yml b/config/locales/es.yml new file mode 100644 index 0000000..88a18c2 --- /dev/null +++ b/config/locales/es.yml @@ -0,0 +1,10 @@ +--- +es: + # Remove when create the translations in Decidim + decidim: + surveys: + survey_confirmation_mailer: + confirmation: + body: Has contestado correctamente al cuestionario %{questionnaire_title} dentro de %{participatory_space} + subject: Confirmación de respuesta al cuestionario %{questionnaire_title} + export_name: Respuestas del cuestionario diff --git a/spec/features/remove_overrides_spec.rb b/spec/features/remove_overrides_spec.rb index 20f8e3e..31a3a09 100644 --- a/spec/features/remove_overrides_spec.rb +++ b/spec/features/remove_overrides_spec.rb @@ -5,6 +5,7 @@ RSpec.describe "Overrides" do it "remove overrides after upgrading to v0.28" do # - Check header and application overrides views to set Google Tag Manager (see #22 and "Add Google Tag Manager to admin backoffice" in the README) + # - Remove `survey_confirmation_mailer` translations when Decidim has them expect(Decidim.version).to be < "0.28" end end