this repo has no description

fix: no more catalan because of title to short.

+4 -1
+4 -1
packages/remanso-cli/src/lib/note.ts
··· 7 7 8 8 const LEXICON = "space.remanso.note"; 9 9 const MAX_CONTENT = 10000; 10 + const MIN_CONTENT_FOR_TRANSLATION = 400; 10 11 11 12 interface ImageRecord { 12 13 image: BlobObject; ··· 210 211 content: slicedContent, 211 212 createdAt: publishDate, 212 213 publishedAt: publishDate, 213 - language: detectLanguage(title || slicedContent), 214 + language: detectLanguage( 215 + slicedContent.slice(0, MIN_CONTENT_FOR_TRANSLATION), 216 + ), 214 217 }; 215 218 216 219 if (images.length > 0) {