What you typically do is split up the text automatically in sentences and then translate the sentences one by one (or as many as the model allows), in batches. You can use stanza's multilingual models to do this. Here’s an example: Tokenization & Sentence Segmentation - Stanza 3