Skip to content

Commit

Permalink
Correct locale loading (#355)
Browse files Browse the repository at this point in the history
* Correct locale loading for Ruby 3.3

* Add current directory

* Remove bundle exec
  • Loading branch information
johlym committed Feb 28, 2024
1 parent ebbabba commit 736a986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: bundle exec ruby web.rb -p $PORT
web: ruby web.rb -p $PORT
2 changes: 1 addition & 1 deletion web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
configure do
use Rack::SslEnforcer if ENV['FORCE_SSL']
I18n.enforce_available_locales = true
I18n.load_path = Dir[File.join(settings.root, 'locales', '*.yml')]
I18n.load_path = Dir[File.join(File.dirname(__FILE__), 'locales', '*.yml')]
I18n.backend.load_translations
I18n.default_locale = :en
end
Expand Down

0 comments on commit 736a986

Please sign in to comment.