Menu
yusr.
uz ru en

How a three-language site is built

Translation is not swapping text. It is also date formats, number notation and URL structure.

Yusr runs in three languages: Uzbek, Russian and English. Uzbek without a prefix, the others under /ru and /en.

The most common mistake is treating translation as text alone. In practice the language also decides the date, the digit separator, even the length of a heading: Russian text usually runs longer than Uzbek and stops fitting inside a button.

An unexpected trap

In the Carbon library the uz locale means Cyrillic: a date comes out as "15 ноябр". Latin Uzbek needs uz_Latn. You can only catch this by looking at the page — the code itself looks correct.