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.
| Need | Sound | Weak |
|---|---|---|
| Hebrew | A Hebrew URL or the main path | Hebrew text that loads only in a script |
| English | Its own /en path | The same URL with a toggle |
| Declaration | Reciprocal hreflang | A tag on one side only |
| Fallback | x-default to Hebrew | No declaration |