From 0ada6b81c2beb366f3d574d1c6a3b48a9d50aafe Mon Sep 17 00:00:00 2001
From: Neil Lalonde <neillalonde@gmail.com>
Date: Tue, 21 Aug 2018 10:36:48 -0400
Subject: [PATCH] DEV: add a way to skip locales with problems that break
 Discourse and need to be fixed in Transifex

---
 script/pull_translations.rb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/script/pull_translations.rb b/script/pull_translations.rb
index 8870974c5e6..c8283486196 100755
--- a/script/pull_translations.rb
+++ b/script/pull_translations.rb
@@ -12,11 +12,17 @@ def expand_path(path)
   File.expand_path("../../#{path}", __FILE__)
 end
 
+# List of locales that will break Discourse and need to be fixed
+# by translators in Transifex.
+def broken_locales
+  ['ja']
+end
+
 def supported_locales
   Dir.glob(expand_path('config/locales/client.*.yml'))
     .map { |x| x.split('.')[-2] }
     .select { |x| x != 'en' }
-    .sort
+    .sort - broken_locales
 end
 
 YML_DIRS = ['config/locales',