Translation
When He (God) prepared the heavens, I was there;
when He marked out the horizon on the face of the deep,
Paraphrase
When He (God) prepared the heavens, I, wisdom, was present and involved;
when he marked out the horizon on the surface of the oceans (I was present and involved);