Skip to content
When the Network Is Missing

How Google Translate Works Offline

On Android, Google Translate can turn a typed sentence into another language after the internet connection drops, provided the language files it needs are already on the phone. Google’s Android help page identifies the sign that a file is in place: the app marks the language as Downloaded. The mark appears next to the language name in the picker for the original text or the translation.

A passenger holds a phone beside a train window overlooking tawny fields.
Tawny fields pass beyond the window as a passenger holds a phone above the train seat.

Where does Google Translate run when the connection drops?

Google’s Android instructions for written translation describe a language picker with a source on the left and a destination on the right. The source is the language of the original text; the destination is the language the result will appear in. Together they make up the language pair. A word or sentence goes into the text box after those choices, just as it does when a network is available. For offline use, the choices have an extra practical consequence: they determine which language files need to be on that device ahead of time.

The files let the app perform the translation on the phone. Google brought its neural machine translation system to the app for offline use in June 2018, according to the rollout account written by Translate apps product manager Julie Cattiau. Neural machine translation uses a model trained to translate between languages. The model is what does the work on a fresh sentence. A language pack is the file the app downloads so it has what it needs for that language when the connection goes away.

That distinction matters for someone opening the app after the signal has disappeared. An offline pack supports new input: the sentence can be typed for the first time in the place where it is needed. Saving a finished translation would preserve the result of a particular request. Downloading a language makes it possible for the phone to work on the next request. Cattiau’s account put the translation system on the device; Google’s help page documents how the user gets the language onto it.

The same text box in two connection states
ConnectionWhat the person entersWhat offline use requires
Internet availableText and a language pairA connection is available for downloading missing packs
Internet unavailableText and a language pairThe needed languages are already saved on the phone

The result appears in the same app. Google’s written-translation guide also accounts for a result that does not come up automatically: the text screen has a Translate control to request it. The place to check offline readiness is in the language picker, by the names of the languages the app will use.

How does the phone use the rest of the sentence?

Julie Cattiau, Google’s product manager for the Translate apps, explained the move to on-device translation this way: “The neural system translates whole sentences at a time, rather than piece by piece.” Cattiau describes a system that uses the surrounding words to choose a translation, then adjusts the result so its wording and order fit the destination language.

Context does work at both ends of that process. In the original sentence it helps settle what a word means when that word has more than one possible reading. In the translated sentence it helps determine which words belong together and how they should be arranged. A translation can therefore move words away from their original positions while preserving what the sentence says. That matters in a text box, where a short piece of input can look complete even though it leaves a word’s meaning open.

From a typed sentence to a translation
  1. Input: A sentence in the source language enters the app
  2. Context: The translation model considers the words together
  3. Wording: The model chooses and arranges wording in the destination language
  4. Output: The translation appears in the app

The account also explains a piece of advice in Google’s written-translation help: a full sentence gives the app more context than a word or phrase alone. The text field accepts either. The difference is what the model has to go on. A sentence can supply a subject, an action or a phrase that makes a particular reading fit. An isolated word leaves that work to whatever clues the word itself supplies.

Google had already introduced sentence-level translation online by the time it brought the neural system to phones for offline use. In September 2016, Google Brain research scientists Quoc V. Le and Mike Schuster illustrated the change with Chinese-to-English translation. They explained that the older phrase-based system split up the sentence and translated the words and phrases largely independently. Their demonstration of the neural system shows an encoder, the part that turns the source words into a form the model can use, reading through the Chinese sentence before the decoder begins to produce English. The decoder is the part that writes the result. As it produces each new English word, it can give more weight to the parts of the Chinese input that bear on that choice.

That is how the connected system in the demonstration could produce English one word at a time while treating the whole Chinese sentence as a unit. Cattiau’s account of the move to phones establishes the same broad point for offline use: the translation draws on the sentence around the word.

How does Android show which languages are already downloaded?

The Android help page for offline languages puts the download control next to the language name in the picker. This is the same part of the app where the source and destination are chosen, so a person can check availability next to each language rather than infer it from the fact that it appears in a list. Google marks saved languages as Downloaded. An available download has its own control, and the app may ask for confirmation before it fetches the file.

A face-down phone lies on a wooden table beside a coiled cable and a carry-on.
Window light falls across a phone, a coiled charging cable, and an olive carry-on.
What the language picker shows
  • Download control: The app offers a file for the language
  • Confirmation: The app may ask before fetching the file
  • Downloaded mark: The app shows the language is saved on the phone

The picker shows availability at the point where the language is chosen. Google also describes a separate Downloaded languages view for managing the files already on the device. That view lists the available languages and puts any applicable update or upgrade controls alongside the entries. The distinction between the views is useful: one sits in the path of writing a translation; the other is where the collection of language files can be maintained between trips.

Google’s help page gives Update and Upgrade different jobs. Update refreshes the language already on the phone; Upgrade fetches a higher-quality pack when one is offered. Both belong to the file-management screen, where Google directs Android users to connect to Wi-Fi before making changes. The Downloaded mark in the picker answers a narrower question. It shows that the phone has a saved file for the language selected, even if a newer pack is available.

The state shown there belongs to the device. Google’s directions apply separately to an Android phone or tablet because the file has to be present where the translation will run. A language that is ready on the tablet may still be waiting to download on the phone. The check that matters before a connection disappears is the one on the device that will be used.

In Google’s instructions, the download is the part that needs a connection. A phone with a working connection can still fetch a missing language file. Once that window closes, the next typed sentence depends on the languages already stored on that phone. The Downloaded mark makes that visible while there is still time for the app to do something about a missing file.

Frequently Asked Questions

Will Google Translate handle typed text in airplane mode?

Yes. Google documents offline translation with the necessary language files installed, so a phone in airplane mode with Wi-Fi off can still translate typed text for a downloaded pair. A completed translation in that state is also a way to check the selected pair before departure, with both paths to the internet out of the test.

Does every Google Translate language have a downloadable file?

Google’s Android help distinguishes the languages offered in the app from the ones it can download. A language entry without the Download control is unavailable as an offline pack, even though the name appears in the picker.

Can the Android app download a language over mobile data?

Google Translate on Android can fetch a language file over mobile data. In the app’s Data usage settings, Google documents a choice between asking before a download without Wi-Fi and allowing downloads through either Wi-Fi or the mobile network.

Can an offline language file be removed from the Android app?

Google Translate’s Downloaded languages view has a Remove control for deleting a saved language from the device. The app asks for confirmation before it removes the downloaded package. Using that language offline again calls for a fresh download.

Can the Android app use a downloaded language for camera translation?

Google documents offline camera translation for supported downloaded languages. The Camera view has its own language picker, where the app offers the language downloads for that use. Google’s camera help also notes that the clarity of the text affects the result.

Sources

  • Google Translate Help: Download languages to use offline
  • Google: Offline translations are now a lot better thanks to on-device AI
  • Google Translate Help: Translate written words
  • Google Translate Help: Translate images
  • Google Research: A Neural Network for Machine Translation, at Production Scale