From 1382c8f0aba4bd262efa7267c8655c2482409b06 Mon Sep 17 00:00:00 2001 From: Keegan George Date: Wed, 27 Nov 2024 14:21:01 -0800 Subject: [PATCH] DEV: Prevent `detect_text_locale` from appearing in menus ### :mag: 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. --- lib/ai_helper/assistant.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ai_helper/assistant.rb b/lib/ai_helper/assistant.rb index 86d4b70bc..74656be66 100644 --- a/lib/ai_helper/assistant.rb +++ b/lib/ai_helper/assistant.rb @@ -233,6 +233,8 @@ def location_map(name) %w[post] when "illustrate_post" %w[composer] + when "detect_text_locale" + %w[] else %w[composer post] end