Skip to content
pubscout

translator

1.0.4+1, released a year ago by an unverified publisher

Free, unofficial Google Translate API wrapper for Dart and Flutter.

WASM-ready
$ flutter pub add translator
Source repository

What it does

Allows translating strings and text using a free Google Translate interface. Supports language auto-detection and custom source/target language codes.

AI-written summary of version 1.0.4+1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a quick translation tool for educational purposes
  • You want a free wrapper over Google Translate without official API credentials

Skip it when

  • You need a stable, production-ready translation API that won't break on website changes
  • You require official enterprise support for translations

Strengths

  • Easy to use with string extension methods
  • Supports auto-detection of source languages
  • Free and requires no API key

Weaknesses

  • Based on crawling the Google Translate website and may break anytime
  • Developed for educational purposes only

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
final translator = GoogleTranslator();
var translation = await translator.translate("Dart is very cool!", to: 'pl');
print(translation);

Alternatives

Packages that do the same job and could replace translator.

  • intl

    Provides robust, official localization and internationalization support for Dart and Flutter.

  • easy_localization

    Offers production-ready static localization management for Flutter apps.

  • slang

    Type-safe internationalization for Flutter with build-time validation.

Works with

Packages commonly used together with translator: ones it builds on, ones built on it, and its own family.