1
0
mirror of synced 2026-08-05 07:16:54 +00:00

DEV: Prevent detect_text_locale from appearing in menus (#967)

### 🔍 Overview
With the recent changes to allow DiscourseAi in the translator plugin, `detect_text_locale` was needed as a CompletionPrompt. However, it is leaking into composer/post helper menus. This PR ensures we don't not show it in those menus.
This commit is contained in:
Keegan George
2024-11-28 07:27:08 +09:00
committed by GitHub
parent fbcc8e493a
commit dabef02919
+2
View File
@@ -233,6 +233,8 @@ module DiscourseAi
%w[post]
when "illustrate_post"
%w[composer]
when "detect_text_locale"
%w[]
else
%w[composer post]
end