On this page8
Part of the TFI PHP App. By Mohammad Javad Dastouri, full-stack and AI engineer.
Most multilingual websites translate the pages and forget the rest. Here, one switch changes every word a visitor can read, including menus, forms, consent and structured data.
At a glance
- Languages stored in advance
- 15
- In live use on most sites today
- 1 or 2
- Right-to-left
- Arabic, Urdu and Persian
- Digits
- Western, Arabic and Extended Arabic
- Translations kept as
- One typed row per item and language
- Untranslated pages offered to search engines
- None
- Languages stored in advance
- 15
- In live use on most sites today
- 1 or 2
- Right-to-left
- Arabic, Urdu and Persian
- Digits
- Western, Arabic and Extended Arabic
- Translations kept as
- One typed row per item and language
- Untranslated pages offered to search engines
- None
The decision
- Context
- The platform stores 15 languages, and a translation goes out of date the moment its original changes.
- Decision
- One source language, with a translation row for each visible item, marked with a fingerprint of its original.
- Not chosen
- A full copy of each page per language. Simpler to build, and the copies drift apart with no warning.
- Cost
- Every place that shows text has to look up its translation.
- Result
- A changed original marks its translation out of date, and a half-translated page is not offered to search engines.
- Context
- The platform stores 15 languages, and a translation goes out of date the moment its original changes.
- Decision
- One source language, with a translation row for each visible item, marked with a fingerprint of its original.
- Not chosen
- A full copy of each page per language. Simpler to build, and the copies drift apart with no warning.
- Cost
- Every place that shows text has to look up its translation.
- Result
- A changed original marks its translation out of date, and a half-translated page is not offered to search engines.
The 15
English, Chinese, Hindi, Spanish, Arabic, French, Bengali, Portuguese, Russian, Indonesian, Urdu, German, Japanese, Turkish and Persian are stored in advance. A site can add others.
How the switch works
Originals stay in one source language. Every visible item has its own translation row, marked with a fingerprint of the original. When the original changes, the translation is known to be out of date.
A site owner can see how complete each language is, preview it, and switch. A switch can be undone, and a hidden language keeps all its data.
Right-to-left, done properly
Layout
The stylesheet uses logical sides only, so the page mirrors by itself.
Mixed text
Codes, email addresses and phone numbers stay left-to-right inside Arabic text.
Type
Arabic has its own self-hosted fonts and type scale, with no italics or letter spacing.
Proof
A line falling the wrong way on a right-to-left page blocks a release.
Layout
The stylesheet uses logical sides only, so the page mirrors by itself.
Mixed text
Codes, email addresses and phone numbers stay left-to-right inside Arabic text.
Type
Arabic has its own self-hosted fonts and type scale, with no italics or letter spacing.
Proof
A line falling the wrong way on a right-to-left page blocks a release.
Search in every language
Each language version has its own title, description and canonical address, plus hreflang links, which tell Google which versions are translations of each other. A page joins search only when it is really translated, so nothing half-finished gets indexed.
Title lengths are measured by display width, so a Chinese character counts as two. Minimum lengths scale by script, because a Hebrew or Chinese article is shorter than the same article in English.
What it does not do
The platform stores and manages translations and can use AI to draft them. Whether a translation reads well is still a human decision.
Building for more than one market?
Tell me which markets you serve. Next: the form builder.
- Section
- Web platforms and migration
- Updated
- November 9, 2026
- Reading time
- 3 min read
Hiring for this kind of work?
Tell me about the role and I will reply by email.
Discuss a role with me
