Repository navigation
Conversation
Trigram matching cost grows with the source length. With long texts (e.g. HTML help articles) the TM suggestion query could run for minutes, so the TM panel never loaded and Tolgee AI, which waits for TM examples, returned nothing.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Translation memory suggestions now skip source texts longer than 1000 characters.
Why:
Changes:
AbstractTranslationMemoryService.getSuggestionsandgetSuggestionsListreturn no results when the base text is longer thanMAX_SUGGESTION_SOURCE_LENGTH(1000). This covers the TM panel and the TM examples in Tolgee AI prompts.Not in this PR:
Summary by CodeRabbit