diff --git a/Gemfile b/Gemfile index 47c80bc..a45415b 100644 --- a/Gemfile +++ b/Gemfile @@ -67,3 +67,4 @@ group :test do end gem "cssbundling-rails", "~> 1.4" +gem "rails-i18n" diff --git a/Gemfile.lock b/Gemfile.lock index 4eecbf7..30c231d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -243,6 +243,9 @@ GEM rails-html-sanitizer (1.6.2) loofah (~> 2.21) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) + rails-i18n (8.1.0) + i18n (>= 0.7, < 2) + railties (>= 8.0.0, < 9) railties (8.0.2) actionpack (= 8.0.2) activesupport (= 8.0.2) @@ -431,6 +434,7 @@ DEPENDENCIES propshaft puma (>= 5.0) rails (~> 8.0.2) + rails-i18n rspec-rails (~> 8.0.0) rubocop-rails-omakase selenium-webdriver diff --git a/config/application.rb b/config/application.rb index 7fc94f5..e67918b 100644 --- a/config/application.rb +++ b/config/application.rb @@ -16,12 +16,10 @@ module Moodie # Common ones are `templates`, `generators`, or `middleware`, for example. config.autoload_lib(ignore: %w[assets tasks]) - # Configuration for the application, engines, and railties goes here. - # - # These settings can be overridden in specific environments using the files - # in config/environments, which are processed later. - # # config.time_zone = "Central Time (US & Canada)" + config.time_zone = "Europe/Paris" + config.i18n.default_locale = :fr + I18n.available_locales = [ :fr, :en ] # config.eager_load_paths << Rails.root.join("extras") end end