Home / Technical articles / Website development
Translating a Chinese site into four languages by text replacement alone will always produce broken layouts and pages that search engines never index.
The most common approach to multilingual sites is to extract the text from Chinese pages, translate it and swap it back.
The result is usually this: German text runs 40% longer than Chinese and bursts the buttons; Arabic reads right to left and the layout collapses; four-character Chinese phrases lose their rhythm in English and titles become long and flat.
The right approach is to build each language as an independent site, not as a language variant of the same page.
Three common structures:
· Subdirectories: example.com/zh/, example.com/en/
· Subdomains: zh.example.com, en.example.com
· Separate domains: example.cn, example.com
We recommend subdirectories, because authority stays concentrated on one domain. Subdomains and separate domains split it.
Changing this decision later is expensive (the 301 redirects have to be redone), so get it right the first time.
The page needs hreflang tags telling search engines which language version it represents:
Each language version must declare all language versions, including itself. Omitting itself makes search engines reject the set.
Also the lang attribute must be on the html tag, not just in a meta tag.
x-default specifies the default version when no language matches, and usually points to English or the primary language.
Some pages only make sense in certain languages. A policy explainer aimed at domestic clients, for example, has no readers once translated into English.
In that case, do not force a translation: leave the page out of that language version, but make sure hreflang never points to a page that does not exist.
The other direction: some languages need extra pages. For overseas clients you need an extra page on international business, which the Chinese version does not need.
If the site is statically generated, the build script must output per language while sharing one set of templates and components.
The usual approach: store content in a data structure with language fields, filter by language at build time, and output to the matching directory.
This is far easier to maintain than four separate sites, and far friendlier to SEO than runtime translation.
The cost is longer build times (four languages means four builds), but for a site of a few thousand pages a few minutes is acceptable.
Each language version needs its own sitemap, or a single sitemap with language annotations.
The inLanguage field in structured data must use the correct language code (zh-CN / zh-Hant / en / ru).
If you optimise for AI search (llms.txt), multilingual sites need care: llms.txt is normally a single file describing the site in the primary language, but it must state which language versions exist and their URL prefixes.