Pakete, Repositories und App-Kategorien suchen

GitHub-RepositoryPersie0/SimplyTranslate-dart

SimplyTranslate-dart

Eine einfache Übersetzungs-API für Dart / Flutter

Projektcover von SimplyTranslate-dart
Sterne
5
Forks
3
Letzter Push (UTC)
12.01.2025
Projektstatus
Aktiv

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

SimplyTranslate-dart

GitHub | Pub

Project info

A Dart package to translate text using SimplyTranslate, Lingva Translate, and LibreTranslate.

TTS is also supported.

SimplyTranslate and Lingva Translate are free and open-source alternatives to Google Translate (that make use of Google Translate under the hood).

LibreTranslate is a free and open-source alternative to Google Translate that uses a open-source translation engine.

Not working?

As I can't always update the instance list (instances are run by volunteers and can be turned off at any time), do one of the following:

  • fetch the working instances via fetchInstances (look at example code, corresponding project is here)
  • Search for new instances by googling "simplytranslate" or "lingva translate" and set the instance with setInstance = "instance"
  • lingva instances can also be found here

Adding the package to your project

To add this package to your project, add the following line to your pubspec.yaml file under dependencies:

simplytranslate: ^2.2.2

then import the package in your Dart file:

import 'package:simplytranslate/simplytranslate.dart';

Usage

Example code

Limitations

  • Max character length per request for Japanese, Chinese, and Korean is around 1250. For other languages, it's around 5000 due to different encoding results.

Apps using SimplyTranslate

  • Pareader - Learn languages with news articles in multiple languages and translate words with a simple tap.

Buy me a coffee

ko-fi

Credits

This package is based on Gabriel Pacheco's google-translator, distributed under the MIT License.

As Google has request limitations, SimplyTranslate provides a free and open-source alternative with Google Translation quality.

Persie0 GitHub avatar
GitHub-Autor

Persie0 ↗

Vienna University of TechnologyAustriaOffizielle Website ↗
SprachenDart

Kategorien

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 4 Einträge

Wie wähle ich ein passendes Repository?

Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.

  1. Nach Name, Autor oder Beschreibung suchen und nach Thema eingrenzen.
  2. Sterne, Forks und letzte Pushes vergleichen. Sterne zeigen Interesse, garantieren aber keine Qualität.
  3. Vor der Nutzung README, Lizenz und Issues auf GitHub prüfen.

Quellen und Pflege

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗