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

Conversation

@nattsw
Copy link
Contributor

@nattsw nattsw commented Jul 9, 2025

This PR

  • normalizes locales like en_GB and variants to en. With this, the feature will not translate en_GB posts to en (or similarly pt_BR to pt_PT)
  • consolidates whether the feature is enabled in DiscourseAi::Translation.enabled?
  • similarly for backfill in DiscourseAi::Translation.backfill_enabled?
    • turns off backfill if ai_translation_backfill_max_age_days is 0 to keep true to what it says. Set it to a high number to backfill everything

@nattsw nattsw merged commit d54cd1f into main Jul 9, 2025
6 checks passed
@nattsw nattsw deleted the normalize-w-disable branch July 9, 2025 14:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants