discourse/plugins/discourse-ai/lib/translation
Natalie Tay b7d7f99c04
FEATURE: Allow re-localization twice a day if post version has changed (#34023)
This commit is a continuation of
https://github.com/discourse/discourse-ai/pull/1422.

Previously, we entirely skipped / disallowed localization. With this PR,
- For topics, we will only enqueue the translate title job if the post
revisor indicates there is a title change
- For posts, we will only enqueue the translate post job if there is a
post version change

Both jobs will be enqueued with a delay of
`SiteSetting.editing_grace_period` or `5 minutes`, whichever is larger.
Each topic or post may be retranslated to a locale at a maximum of twice
a day.
2025-08-04 10:58:30 +08:00
..
base_candidates.rb FIX: Completion rate double-count and normalize (#33963) 2025-07-30 18:09:09 +08:00
base_translator.rb
category_candidates.rb FIX: Completion rate double-count and normalize (#33963) 2025-07-30 18:09:09 +08:00
category_locale_detector.rb
category_localizer.rb
content_splitter.rb
entry_point.rb FEATURE: Allow re-localization twice a day if post version has changed (#34023) 2025-08-04 10:58:30 +08:00
language_detector.rb
post_candidates.rb FIX: Completion rate double-count and normalize (#33963) 2025-07-30 18:09:09 +08:00
post_detection_text.rb
post_locale_detector.rb
post_localizer.rb FEATURE: Allow re-localization twice a day if post version has changed (#34023) 2025-08-04 10:58:30 +08:00
post_raw_translator.rb
short_text_translator.rb
topic_candidates.rb FIX: Completion rate double-count and normalize (#33963) 2025-07-30 18:09:09 +08:00
topic_locale_detector.rb
topic_localizer.rb
topic_title_translator.rb
verbose_logger.rb