Hebrew and English on separate URLs

Two languages on one URL, with the text swapping only after a script, leave Google with one language. Each language needs a URL, and a tag that names its pair.

A URL per language

hreflang is a tag that links a Hebrew page to its English pair, and back. The link has to be reciprocal. x-default points at the fallback for anyone who matches neither language. Here the fallback is Hebrew.

A toggle that only swaps text, without changing the URL, does not create an English page Google can index on its own.

Language and URL
NeedSoundWeak
HebrewA Hebrew URL or the main pathHebrew text that loads only in a script
EnglishIts own /en pathThe same URL with a toggle
DeclarationReciprocal hreflangA tag on one side only
Fallbackx-default to HebrewNo declaration