discourse-ai/lib
Natalie Tay d54cd1f602
DEV: Normalize locales that are similar (e.g. en and en_GB) so they do not get translated (#1495)
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
2025-07-09 22:21:51 +08:00
..
ai_bot FIX: A typo in bot filtration in ai-bot-header-icon (#1455) 2025-06-24 10:51:07 -03:00
ai_helper FIX: title suggestions should return 5 unique titles (#1491) 2025-07-08 06:30:09 -07:00
ai_moderation FEATURE: Use Persona's when scanning posts for spam (#1465) 2025-06-27 10:35:47 -03:00
automation DEV: Move tokenizers to a gem (#1481) 2025-07-02 14:43:03 -03:00
completions FIX: make AI helper more robust (#1484) 2025-07-04 14:47:11 +10:00
configuration FIX: make AI helper more robust (#1484) 2025-07-04 14:47:11 +10:00
database
discord/bot
embeddings FEATURE: Seamless embedding model upgrades (#1486) 2025-07-04 16:44:03 -03:00
inference
inferred_concepts
personas FIX: make AI helper more robust (#1484) 2025-07-04 14:47:11 +10:00
sentiment DEV: Move tokenizers to a gem (#1481) 2025-07-02 14:43:03 -03:00
summarization DEV: Move tokenizers to a gem (#1481) 2025-07-02 14:43:03 -03:00
tasks
translation DEV: Normalize locales that are similar (e.g. en and en_GB) so they do not get translated (#1495) 2025-07-09 22:21:51 +08:00
utils FIX: make AI helper more robust (#1484) 2025-07-04 14:47:11 +10:00
automation.rb
embeddings.rb
engine.rb
guardian_extensions.rb
multisite_hash.rb
post_extensions.rb
summarization.rb
topic_extensions.rb
translation.rb DEV: Normalize locales that are similar (e.g. en and en_GB) so they do not get translated (#1495) 2025-07-09 22:21:51 +08:00