tangled
alpha
login
or
join now
apoena.dev
/
remanso-cli
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
fix: no more catalan because of title to short.
Julien Calixte
1 week ago
7e73a39c
92b9d3c7
+4
-1
1 changed file
expand all
collapse all
unified
split
packages
remanso-cli
src
lib
note.ts
+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
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
213
-
language: detectLanguage(title || slicedContent),
214
214
+
language: detectLanguage(
215
215
+
slicedContent.slice(0, MIN_CONTENT_FOR_TRANSLATION),
216
216
+
),
214
217
};
215
218
216
219
if (images.length > 0) {