Translate the 55 keys dev added since the branch was cut (TREK services allowance, Valhalla routing service, PDF routing progress, overview distances, Unsplash key hint, tour day limit) and drop the two reservation toasts dev removed, so he matches en key for key again. Refresh the two admin strings and the Valhalla hint whose English changed. Check he in the placeholder spec and the RTL test, and count 28 languages with Hebrew in the README and the Languages, Environment Variables, Contributing and Help Center wiki pages.
2.9 KiB
Languages
TREK ships with translations for 28 languages, the Help Center guides included. You can change your language at any time without logging out.
Supported languages
| Code | Language |
|---|---|
de |
Deutsch |
en |
English |
es |
Español |
et |
Eesti |
fr |
Français |
hu |
Magyar |
nl |
Nederlands |
br |
Português (Brasil) |
cs |
Česky |
sk |
Slovenčina |
pl |
Polski |
ru |
Русский |
zh |
简体中文 |
zh-TW |
繁體中文 |
it |
Italiano |
tr |
Türkçe |
ar |
العربية |
az |
Azərbaycanca |
he |
עברית |
id |
Bahasa Indonesia |
ja |
日本語 |
ko |
한국어 |
th |
ไทย |
uk |
Українська |
gr |
Ελληνικά |
sv |
Svenska |
vi |
Tiếng Việt |
ca |
Català |
Place names in another language
Place search, suggestions, place details and addresses follow the app language by default. Settings → General → Language & region → Place names lets them answer in another language while the interface stays in yours, for example English place names in a German app. Where a place has no name in the chosen language, its local name is shown. See Display-Settings.
RTL support
Arabic (ar) and Hebrew (he) use a right-to-left layout. All other languages use left-to-right. In Arabic and Hebrew, spacing, indents, alignment and the corners of cards and menus follow the reading direction; maps, timelines and other things placed by position stay as they are.
Counts
Texts that count something use the forms each language has for numbers: one place and five places in English, and the separate forms Russian, Polish, Czech, Ukrainian, Arabic and Hebrew use for 2, 5 or 21 of something. Languages without plural forms, such as Japanese or Chinese, use one form for every number.
How language is detected
TREK resolves the display language in this order:
- User preference — the language saved to your account (set in Settings → General).
- Browser language —
navigator.languages(andnavigator.language) reported by your browser. - Server default — the
DEFAULT_LANGUAGEenvironment variable set by the admin. - Fallback — English (
en).
Where the language picker appears
- Login / Register page — before you are signed in.
- Settings → General — after you are signed in. See Display-Settings.
- Public share pages — trip share links.
- Public journey pages — public-facing journey views.
Admin: The
DEFAULT_LANGUAGEenvironment variable sets the fallback language shown on the login page and for unauthenticated users. See Environment-Variables.