mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Output when a locale is invalid
This commit is contained in:
@@ -570,6 +570,8 @@ JS
|
||||
if valid_locale?(opts)
|
||||
DiscoursePluginRegistry.register_locale(locale, opts)
|
||||
Rails.configuration.assets.precompile << "locales/#{locale}.js"
|
||||
else
|
||||
puts "Invalid locale! #{opts.inspect}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user