Translation Bot in Mobile App

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Translation Bot in Mobile App
Simple
~2-3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1054
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Translation Bot Implementation in Mobile Applications

A translation bot — is not just calling Translation API. Interesting scenarios start where you need to preserve dialog context, switch languages on the fly, and work offline. These details are what separate "translation that works" from "translation that works well."

Choosing Translation API

DeepL API. Best translation quality for European languages. Free tier — 500K characters/month. Supports formal/informal tone (formality parameter) — important for business content. Doesn't support Russian → other languages at Google/Yandex level.

Google Cloud Translation API. 100+ languages, high quality for Russian. v3 supports glossary — dictionary of terms that shouldn't be translated or should be translated in specific way. For medical, legal, brand names — mandatory function.

Yandex Translate API. Best results for Russian ↔ European languages. Language detection built-in. Good choice for apps with Russian-speaking audience.

LLM (GPT-4o / Claude). Contextual translation considering tone and style. Wins on specialized texts, idioms, humor. More expensive and slower than specialized APIs for simple translations.

Key Technical Tasks

Language detection. User enters text — bot should understand source language. Either explicit choice via picker, or auto-detect. Google Translation API returns detectedSourceLanguage in response. For Yandex — lang in response.

Auto-detect works well for long texts, poorly — for single word or two. Short requests: better to offer language choice explicitly.

Dialog context. If user translates series of related messages (dialog, document in parts) — LLM with translation history gives more consistent result than independent API calls. Names, pronouns, specific terms preserved in context.

Terminology glossary. Google Translation v3 Glossary API allows creating list of terms that model should not translate or translate in specific way:

from google.cloud import translate_v3

client = translate_v3.TranslationServiceClient()

# Create glossary from CSV: original_term,translation
glossary = client.create_glossary(
    parent=f"projects/{project_id}/locations/us-central1",
    glossary=translate_v3.Glossary(
        name=glossary_name,
        language_pair=translate_v3.Glossary.LanguageCodePair(
            source_language_code="en",
            target_language_code="ru"
        ),
        input_config=translate_v3.GlossaryInputConfig(
            gcs_source=translate_v3.GcsSource(input_uri=glossary_gcs_uri)
        )
    )
)

Offline Mode

For apps with users in unreliable internet zones — offline translation on device.

iOS. MLKit Translation from Google supports downloading language models for offline work. TranslateLanguage.allLanguages() — list of available languages. One language model weighs ~30MB.

import MLKitTranslate

let options = TranslatorOptions(
    sourceLanguage: .russian,
    targetLanguage: .english
)
let translator = Translator.translator(options: options)

// Check and download model
let conditions = ModelDownloadConditions(allowsCellularAccess: true)
translator.downloadModelIfNeeded(with: conditions) { error in
    guard error == nil else { return }
    translator.translate("Hello, world") { result, error in
        print(result ?? "")
    }
}

Android. Same via TranslatorOptions and Translator from com.google.mlkit:translate.

Offline models work in privacy mode — user text doesn't leave device.

Voice Input and Translation Narration

Logical translator addition: user speaks → bot translates → reads translation aloud.

STT for input language: native APIs or Whisper. TTS for translation language: AVSpeechSynthesizer on iOS supports AVSpeechSynthesisVoice(language: "fr-FR") — system voices for dozens of languages. Android TextToSpeech similarly via setLanguage(Locale("fr", "FR")).

Important: check if required voice exists on device before narration. AVSpeechSynthesisVoice.speechVoices() — list of available.

Camera: Real-Time Translation

Most impressive scenario — point camera at menu / sign / document and see translation overlaid on image. Technically: ML Kit Text Recognition (TextRecognizer) → translate text blocks → render over camera preview with OCR bounding boxes.

Gotcha: text coordinates from OCR tied to frame changing 30 times per second. Stabilizing results (compare with previous frame by bounding box IoU) reduces flicker.

Implementation Process

Choose Translation API for target languages and use cases.

Backend development: API keys, translation caching, glossary.

Mobile UI: text input, translation history, copy/share buttons.

Optional: offline models, voice input/output, camera translation.

Timeline Estimates

Basic translation bot via cloud API — 2–3 days. With offline mode, voice input and camera translation — 1.5–2 weeks.