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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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