discourse/plugins/discourse-ai/spec/lib/translation
Penar Musaraj 90baea1ea7
FEATURE: Switch from opt-in to opt-out for categories in AI translations (#40169)
This PR changes Discourse AI translations from an opt-in category model
to an opt-out model: instead of translating only selected
`ai_translation_target_categories`, it introduces
`ai_translation_excluded_categories`, updates the admin UI copy and save
flow, changes topic/post/category candidate selection and detection jobs
to translate all non-excluded categories by default, and adds a
migration that converts existing target-category settings into the
equivalent excluded-category list for existing sites.

It also updates all related specs.

---------

Co-authored-by: discourse-patch-triage[bot] <272280883+discourse-patch-triage[bot]@users.noreply.github.com>
2026-05-26 14:51:04 -04:00
..
base_translator_spec.rb DEV: Use structured output for translations (#39079) 2026-04-03 11:39:27 +08:00
category_candidates_spec.rb FEATURE: Switch from opt-in to opt-out for categories in AI translations (#40169) 2026-05-26 14:51:04 -04:00
category_locale_detector_spec.rb FIX: Improve prompt and check returned value conforms to standard (#35763) 2025-11-05 17:41:49 +08:00
category_localizer_spec.rb PERF: Cache LlmModel lookups in backfill jobs (#36359) 2025-12-01 17:04:25 -03:00
content_splitter_spec.rb
entry_point_spec.rb FIX: Retranslate topic excerpts and avoid using post versions to indicate change (#36382) 2025-12-02 22:45:11 +08:00
language_detector_spec.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
localizable_quota_spec.rb FIX: Retranslate topic excerpts and avoid using post versions to indicate change (#36382) 2025-12-02 22:45:11 +08:00
post_candidates_spec.rb FEATURE: Switch from opt-in to opt-out for categories in AI translations (#40169) 2026-05-26 14:51:04 -04:00
post_detection_text_spec.rb
post_locale_detector_spec.rb FIX: Improve prompt and check returned value conforms to standard (#35763) 2025-11-05 17:41:49 +08:00
post_localizer_spec.rb FIX: Ensure upload reference is available before cooking (#36887) 2025-12-29 23:33:16 +08:00
tag_candidates_spec.rb FEATURE: Expand AI translation settings to allow choosing specific categories instead of just 'all public content' (#39000) 2026-03-31 22:53:37 +08:00
tag_locale_detector_spec.rb FEATURE: Introduce tag localizations with API, without UI yet (#36754) 2025-12-18 18:25:58 +08:00
tag_localizer_spec.rb FEATURE: Introduce tag localizations with API, without UI yet (#36754) 2025-12-18 18:25:58 +08:00
topic_candidates_spec.rb FEATURE: Switch from opt-in to opt-out for categories in AI translations (#40169) 2026-05-26 14:51:04 -04:00
topic_locale_detector_spec.rb FIX: Improve prompt and check returned value conforms to standard (#35763) 2025-11-05 17:41:49 +08:00
topic_localizer_spec.rb PERF: Cache LlmModel lookups in backfill jobs (#36359) 2025-12-01 17:04:25 -03:00
translation_spec.rb FIX: Also automatically translate to site's default locale (#37292) 2026-01-24 00:08:34 +08:00