From cfcdc4b420eb3284ad4367caa673e5581e624121 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 20 Apr 2018 15:29:03 -0400 Subject: [PATCH] Output when a locale is invalid --- lib/plugin/instance.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb index c2d41e2c3fa..d17e801b229 100644 --- a/lib/plugin/instance.rb +++ b/lib/plugin/instance.rb @@ -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