Skip to content

Commit

Permalink
Add alchemy_i18n gem
Browse files Browse the repository at this point in the history
Add alchemy_i18n gem to test multiple translations in out dummy app.
  • Loading branch information
sascha-karnatz committed Sep 29, 2023
1 parent d44a7c3 commit 959f146
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if ENV["DB"] == "mysql" || ENV["DB"] == "mariadb"
end
gem "pg", "~> 1.0" if ENV["DB"] == "postgresql"

gem "alchemy_i18n", git: "https://github.com/AlchemyCMS/alchemy_i18n.git", branch: "main"

group :development, :test do
gem "execjs", "~> 2.9.1"
gem "rubocop", require: false
Expand Down
2 changes: 2 additions & 0 deletions lib/generators/alchemy/install/files/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
// about supported directives.
//
//= require alchemy/admin
//= require alchemy_i18n/de
//= require select2_locale_de
1 change: 1 addition & 0 deletions spec/dummy/app/assets/config/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
//= link application.css
//= link application.js
//= link_tree ../images
//= link tinymce/langs/de.js
3 changes: 3 additions & 0 deletions spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class Application < Rails::Application
config.load_defaults ENV["RAILS_VERSION"] || 7.0
end

config.i18n.default_locale = :en
config.i18n.available_locales = [:en, :de, :kl]

# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
Expand Down

0 comments on commit 959f146

Please sign in to comment.