Don't execute i18n watcher on boot. It shouldn't catch any file changes initially,
 and unnecessarily slows down boot of applications with lots of tr

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-11-08 04:00:03

Don't execute i18n watcher on boot. It shouldn't catch any file changes initially, and unnecessarily slows down boot of applications with lots of translations.

This change can be seen as a bug fix, but since it behaved like this for a very long time, we're deciding to not backport the fix and to make the change in a major release.

Previously reporting an un-raised exception would result in an error report without a backtrace. Now it automatically generates one.

This allows for overriding the global configuration found at ActiveSupport.escape_html_entities_in_json for specific calls to to_json.

Previously adding time instances together such as 10.days.ago + 10.days.ago or 10.days.ago.since(10.days.ago) produced a nonsensical future date. This behavior is deprecated and will be removed in Rails 8.1.

Optimize load time for Railtie#initialize_i18n. Filter I18n.load_paths passed to the file watcher to only those under Rails.root. Previously the watcher would grab all available locales, including those in gems which do not require a watcher because they won't change.

Leave a Comment