Output when a locale is invalid

This commit is contained in:
Robin Ward
2018-04-20 15:29:03 -04:00
parent efd744b049
commit cfcdc4b420

View File

@@ -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