discourse-ai/lib/translation
Natalie Tay 8a3a247b11
DEV: Also detect locale of categories and do not translate if already in the locale (#1413)
Previously I had omitted to add `locale` to the category, as categories tended to be just a single word, and I did not find it would be worth to carry locale information.

Due to certain LLMs that do poorer at translation, category descriptions got pretty messy. We added locale support here - https://github.com/discourse/discourse/pull/32962. 

This PR adds the automatic locale detection, and skips translating to the category's locale.
2025-06-06 22:41:48 +08:00
..
base_translator.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
category_locale_detector.rb DEV: Also detect locale of categories and do not translate if already in the locale (#1413) 2025-06-06 22:41:48 +08:00
category_localizer.rb DEV: Also detect locale of categories and do not translate if already in the locale (#1413) 2025-06-06 22:41:48 +08:00
content_splitter.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
entry_point.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
language_detector.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
locale_normalizer.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
post_locale_detector.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
post_localizer.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
post_raw_translator.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
short_text_translator.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
topic_locale_detector.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
topic_localizer.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
topic_title_translator.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00
verbose_logger.rb FEATURE: Automatic translation and localization of posts, topics, categories (#1376) 2025-05-29 17:28:06 +08:00