From fa22f99d43ff210fc8d0ecd3f474abb73d53c4ca Mon Sep 17 00:00:00 2001 From: James Smith Date: Sat, 24 Feb 2024 17:54:11 +0000 Subject: [PATCH] enable polish translation --- Rakefile | 3 ++- config/application.rb | 3 ++- config/i18n-tasks.yml | 3 ++- config/initializers/translation.rb | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 90ff7f291..3b844e857 100644 --- a/Rakefile +++ b/Rakefile @@ -12,7 +12,8 @@ end namespace :translation do namespace :clobber_and_sync do [ - :de + :de, + :pl ].each do |locale| task locale => :environment do puts "-- Clobbering #{locale}.yml files" diff --git a/config/application.rb b/config/application.rb index be500dba3..905cc3995 100644 --- a/config/application.rb +++ b/config/application.rb @@ -43,7 +43,8 @@ module Manyfold config.i18n.default_locale = :en config.i18n.available_locales = [ :en, - :de + :de, + :pl ] # Don't generate system test files. diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml index cd7ed811b..7e83da1a2 100644 --- a/config/i18n-tasks.yml +++ b/config/i18n-tasks.yml @@ -5,7 +5,8 @@ base_locale: en ## All available locales are inferred from the data by default. Alternatively, specify them explicitly: locales: [ en, - de + de, + pl ] ## Reporting locale, default: en. Available: en, ru. # internal_locale: en diff --git a/config/initializers/translation.rb b/config/initializers/translation.rb index 3982a5089..8b66fb260 100644 --- a/config/initializers/translation.rb +++ b/config/initializers/translation.rb @@ -25,6 +25,6 @@ if Rails.env.development? "helpers" ] config.source_locale = "en" - config.target_locales = ["ru", "es", "fr", "de"] + config.target_locales = ["ru", "es", "fr", "de", "pl"] end end