mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-28 10:32:15 +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]
|
%w[post]
|
||||||
when "illustrate_post"
|
when "illustrate_post"
|
||||||
%w[composer]
|
%w[composer]
|
||||||
|
when "detect_text_locale"
|
||||||
|
%w[]
|
||||||
else
|
else
|
||||||
%w[composer post]
|
%w[composer post]
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user