Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit dabef02

Browse files
authored
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.
1 parent fbcc8e4 commit dabef02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ai_helper/assistant.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ def location_map(name)
233233
%w[post]
234234
when "illustrate_post"
235235
%w[composer]
236+
when "detect_text_locale"
237+
%w[]
236238
else
237239
%w[composer post]
238240
end

0 commit comments

Comments
 (0)