A multilingual export website involves two separate decisions: which languages to offer, and how the URLs for each language are structured.
This site is published in four languages: English, Simplified Chinese, Traditional Chinese and Japanese. The URL structure, hreflang setup and font configuration described below are taken from its implementation.
Choosing languages
- Enquiry handling: the business can respond to enquiries in that language. A page in a language that leads to replies only in another language may not meet buyer expectations.
- Content review: each version, whether written directly or produced with AI or human translation, is reviewed for terminology and for the questions buyers in that market ask.
- Maintenance: prices, specifications and terms are updated in every language version at the same time, so no version displays outdated information.
The language list is usually based on the markets where buyers are located, rather than on the number of languages a site can technically display.
URL structure
| Approach | Characteristics | Typical use |
|---|---|---|
| Subdirectory (/zh/, /ja/) | Single domain; simplest to set up and maintain | Most multilingual sites |
| Subdomain (zh.example.com) | Each subdomain can be configured and hosted separately | Versions operated by different teams |
| Country-code domain (example.jp) | Clear country targeting; operated as a separate site | Markets that require a separate local presence |
The default language is usually served at the root rather than at /en/. If both / and /en/ return the same English page, the two URLs are duplicates, and one should redirect to the other. On this site, /en/ redirects to /.
hreflang requirements
hreflang annotations signal to search engines that a set of pages are language or regional versions of the same content. According to Google's documentation, the annotations must be reciprocal: each version lists every other version and itself. If two pages do not reference each other, the annotations may be ignored.
Language codes require attention to format. The URL segment can be lowercase (/zh-hant/), while the hreflang value should follow BCP 47 with the script subtag capitalised (zh-Hant). An incorrect value produces no visible error; the annotation may simply be ignored, and search engines may then show a different language version than intended.
Five changes required to add a language
Adding Japanese to this site required changes in five places. Four of them produce an error if omitted; the fifth does not.
- Routing tables: the locale list and the BCP 47 form of each locale.
- The message file for the new locale.
- Every content file structured as one entry per language; the TypeScript compiler reports missing entries.
- The font stack. A Japanese page without a Japanese font setting may fall back to a Chinese font, so characters such as 直 and 骨 render with Chinese glyph forms. This produces no error and is visible only to readers of Japanese.
- The SEO check tables, so the new language is included in automated verification.
Because the font fallback is not detected by any automated check, it is documented in the procedure for adding a language.
AumCreate