Lazy load locales (#36728).

Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@21448 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2022-03-06 17:23:36 +00:00
parent cd688a1781
commit 899df6a051

View File

@@ -157,7 +157,7 @@ module Redmine
# Custom backend based on I18n::Backend::Simple with the following changes:
# * available_locales are determined by looking at translation file names
class Backend < ::I18n::Backend::Simple
class Backend < ::I18n::Backend::LazyLoadable
module Implementation
# Get available locales from the translations filenames
def available_locales