Simple answer: No.
InDesign is only following your commands to place text in frames. It's not reading the text in Hebrew or Spanish.
A human being who understands Hebrew and Spanish has to do that. And if you can't do it, you pay someone who does to do it.
is there a way to link the texts manually in some way?
every paragraph I would add a link manually from one text to another something like that?
There may be scripts or 3rd party software for that. But I don't do translation so I don't know of it.
Can you show a screenshot? ;-)
There are a few ways to automate parts of this project if you are using a translation management tool like Trados or Wordfast. However, these are expensive tools that you probably don't want to purchase for a one-off project.
Without powerful TM tools, your best bet is to pay someone to manually align it for you. I do this all the time for my clients who require bilingual aligned documents.
If you are going to do it yourself, I suggest you use a table to house your text, with all of the attendant inconviences that come with the use of long tables. So if your texts are truly matched in number of sentences and paragraphs, you can use Convert Text to Table to your advantage.
Lastly: Do you know any scripting language? I wonder what bilingual-corpora-management Master Obi-Wan has up his sleeve.
I don't know what I'm more impressed by:
a) your ability to conjure up that script out of nowhere, or
b) the fact that you have that username on YouTube
The script is impressive, for sure. But how do you have that username? Do you wave your hands at lawyers and say "This isn't the script developer you're looking for?" Jedi mind tricks, for sure.
Aha! You're more impressed by my "Obi-wan Kenobi" name on YouTube!
It was not the goal!
I thought for a while that this kind of layout problem could be simply fixed! [without headache!]
In this video, as a Jedi, I made the deal just seeing the display and using The Force! …