文章详情

Multilingual Content Done Right: Translation Sets, Fallback, hreflang

💡

Missing-translation detection, language fallback and hreflang: multilingual sites run on mechanisms, not luck.

Mechanism before translation

The most common way multilingual sites die is an English version quietly 404ing with nobody noticing. The right approach makes completeness a mechanism: all language versions of a post form a translation set, and the admin flags exactly which language is missing — no manual clicking through pages.

Fallback needs a bottom line

What happens when a visitor requests a language version that does not exist? Two rules: explicit language-prefixed URLs never fall back across languages (a clean 404 beats a confusing wrong-language page, and SEO agrees); on-site navigation only links to versions that exist. Hold these two lines and surprises disappear.

Tell the search engines

Every page should declare its language and its alternates via hreflang, with canonical pointing at the current language's canonical URL. With these three pieces in place, Chinese and English indexing never fight — each earns its own traffic.

— 由 Hook 测试插件附加的尾注
返回首页