An agency serves a community where a large share of riders read a language other than the one the schedule is written in. The service is genuinely available to them, but the trip planner is not, because every stop name and headsign shows up in one language only. GTFS translations.txt is the file that closes that gap. It lets a single General Transit Feed Specification (GTFS) feed carry rider-facing text in many languages at once. A rider sees their own language in the app they already use, without the agency maintaining two separate feeds.
This is a working guide to translations.txt. It covers what the file can translate, how it depends on the feed’s default language, how it targets individual rows, and how consumer apps decide which language to show. For each part, the mechanism gets named plainly, per the gtfs.org translations.txt reference.
What Is in GTFS translations.txt, and What Can It Translate?
GTFS translations.txt translates rider-facing text in the static feed into other languages without forking it. It can translate stop names, trip headsigns, route names, agency information, and other display strings. Each translation is one row that names the field, the language, the target record, and the translated text, so consumers show riders their own language rather than the default.
The file works by pointing at existing text elsewhere in the feed and supplying an alternate version of it. The fields that carry the pointer and the payload are:
| Field | What it holds |
|---|---|
table_name | The file that holds the original text, such as stops or trips |
field_name | The column being translated, such as stop_name |
language | The language of this translation, as an IETF BCP 47 code |
translation | The translated text itself |
record_id | The primary key of the row being translated |
record_sub_id | A second key for tables that need one, such as stop_times |
field_value | An alternative to record_id: match by the original text instead |
Not everything in a feed is translatable, and that is deliberate. Identifiers, coordinates, and codes carry no language, so translations.txt targets only the human-readable display fields a rider actually sees. Getting the underlying stop names right in stops.txt first matters here, because a translation is only as good as the default string it points back to.
How Do feed_lang and the Default Language Work Together?
Every translation needs a base to translate from, and that base is the feed’s default language. It is declared once, in feed_info.txt, through feed_lang. All text in the feed is assumed to be written in that language unless a translations.txt row says otherwise.
When a feed serves more than one language, feed_lang stays the language the original text is written in, such as en. Only a feed whose original text itself mixes languages, such as bilingual stop names, uses mul, the ISO code for “multiple languages”. default_lang names the language a consumer falls back on when it does not know the rider’s own. Each translations.txt row adds one alternate for an original string. This is why versioning and the language declaration travel together: the file that anchors the default language is the same file covered in feed_info.txt and GTFS feed versioning.
The rule to remember is that you never translate into the default language. A stop already written in the default language needs no row for it. You add rows only for the additional languages, each pointing back at the same original.
How Do record_id and field_value Target the Right Rows?
translations.txt offers two ways to say which text a translation replaces, and mixing them up is a common way the file goes wrong. The first is precise: record_id names the primary key of the exact row being translated, stop_id for a stop, trip_id for a trip. One translation, one identified record.
The second is broad: field_value matches on the original text itself, so a single row translates every place that exact string appears. This is efficient for a phrase that repeats across the feed, a common headsign or a shared agency name, but it is blunt. If the same English word should become two different words in another language depending on context, field_value cannot tell those cases apart. Use record_id when a translation must be exact, and reserve field_value for strings that genuinely mean the same thing everywhere they appear. Never populate both for the same row.
How Do Google Maps, Apple Maps, and Transit Apps Pick a Rider’s Language?
A consumer app already knows the rider’s language, from the device or account settings. When it reads a feed that carries translations.txt, it matches that language against the available language codes. It shows the translated string where one exists and falls back to the default where one does not. The agency does nothing app by app. It publishes one feed, and each consumer resolves the language on its own.
That resolution happens in the consumers that support translations. Major trip planners read translations.txt, though support varies by app, so check the ones your riders use. A stop name translated once in the feed can therefore appear in a rider’s language in whichever app they happen to open. The practical payoff is that language access stops being an app-by-app negotiation and becomes a property of the data. For the mechanics of getting a feed into these consumers in the first place, see how to publish GTFS data to Google Maps.
Because the language lives in the data rather than in any one app, translation also supports Title VI language-access goals. It does not depend on a single vendor honoring a request. The feed carries the languages; the ecosystem renders them.
How Does This Differ From Translating Service Alerts?
Static translations and realtime alert translations solve related problems through entirely separate mechanisms. Conflating them causes real gaps. translations.txt translates the fixed schedule: the stop names, headsigns, and route names that rarely change. It is part of the static GTFS feed and is refreshed only when the schedule is republished.
A service disruption is different. It is unplanned, time-sensitive, and lives in the GTFS-Realtime feed, where a message carries its own translated strings inside a TranslatedString field at the moment it is issued. Translating the static feed does nothing for an alert, and translating alerts does nothing for the schedule. An agency serving multiple languages needs both. The realtime half is covered in how to deliver multilingual transit alerts, which explains why an alert’s translations travel with the alert rather than with the schedule.
FAQ
Do I Need to Translate Text Into the Feed’s Default Language?
No. The original strings in stops.txt, trips.txt, and the other files are already treated as the default language declared by feed_lang. You add translations.txt rows only for the additional languages. A row that repeats the default text adds nothing and can create confusion for consumers.
When Should I Use field_value Instead of record_id?
Use record_id when a translation must target one specific row, which is the safe default. Use field_value only for a string that means exactly the same thing everywhere it appears, such as a shared agency name, so one row can translate every occurrence. Never set both fields on the same row.
Which Apps Actually Show GTFS Translations?
Support varies by app, so check the ones your riders use. An app that supports translations matches the rider’s device or account language against the feed’s translations and shows the matching string, falling back to the default language where no translation exists.
Is translations.txt the Same as Translating Service Alerts?
No. translations.txt translates the static schedule and is part of the GTFS feed. Service alerts are translated separately inside the GTFS-Realtime feed, where each message carries its own translated strings. An agency serving several languages needs both mechanisms, because neither covers the other’s content.
Where TransitFare Fits
TransitFare is a transit technology company founded in 2012 that builds GTFS publishing tools for small and mid-sized transit agencies, from fleets of 10 vehicles to fleets of 50 vehicles. Its feed declares the default language in feed_info.txt; it does not generate translations.txt or multilingual alert text today, so translated strings are added separately. The platform has a strong production reliability record and more than 13 years in production. A software-only rollout typically takes about 4 weeks.
Language access is most credible when it is built into the data instead of bolted on per app. For the file that anchors the default language, see feed_info.txt and GTFS feed versioning. GTFS timepoints and schedule accuracy covers the timing side. To learn what GTFS is from the ground up, start with what is GTFS. To build multilingual feeds without forking your data, talk to us about your GTFS.