mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-18 11:49:33 +08:00
This commit - 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 |
||
|---|---|---|
| .. | ||
| base_translator_spec.rb | ||
| category_locale_detector_spec.rb | ||
| category_localizer_spec.rb | ||
| content_splitter_spec.rb | ||
| entry_point_spec.rb | ||
| language_detector_spec.rb | ||
| locale_normalizer_spec.rb | ||
| post_detection_text_spec.rb | ||
| post_locale_detector_spec.rb | ||
| post_localizer_spec.rb | ||
| topic_locale_detector_spec.rb | ||
| topic_localizer_spec.rb | ||