mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: Catch missing translations during test runs (#26258)
This configuration makes it so that a missing translation will raise an error during test execution. Better discover there than after deploy.
This commit is contained in:
@ -122,7 +122,8 @@ module I18n
|
||||
dup_options = nil
|
||||
if options
|
||||
dup_options = options.dup
|
||||
should_raise = dup_options.delete(:raise)
|
||||
should_raise =
|
||||
dup_options.delete(:raise) || Rails.application.config.i18n.raise_on_missing_translations
|
||||
locale = dup_options.delete(:locale)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user