mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-27 18:12:18 +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:
parent
fbcc8e493a
commit
dabef02919
@ -233,6 +233,8 @@ module DiscourseAi
|
||||
%w[post]
|
||||
when "illustrate_post"
|
||||
%w[composer]
|
||||
when "detect_text_locale"
|
||||
%w[]
|
||||
else
|
||||
%w[composer post]
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user