FIX: a temporary fix when CJK user tries to add a long title (#7045)

FIX: a temporary fix when CJK user tries to add a long title (#7045)

Discourse doesn’t analyze the sentence components. So it counts the whole sentence as a word for CJK.

「title max word length」不适用于中文语境,Bug? - 支持 - Discourse中文论坛

diff --git a/config/site_settings.yml b/config/site_settings.yml
index dfac7fd..cc8a362 100644
--- a/config/site_settings.yml
+++ b/config/site_settings.yml
@@ -691,7 +691,13 @@ posting:
   max_users_notified_per_group_mention: 100
   newuser_max_replies_per_topic: 3
   newuser_max_mentions_per_post: 2
-  title_max_word_length: 30
+  title_max_word_length:
+    default: 30
+    locale_default:
+      ja: 50
+      ko: 50
+      zh_CN: 50
+      zh_TW: 50
   whitelisted_link_domains:
     default: ""
     type: list

GitHub sha: bd2edbb2