apple_native_translate 0.1.1
apple_native_translate: ^0.1.1 copied to clipboard
On-device text translation using Apple's Translation framework on iOS 18 and later, exposed to Flutter with a simple batch API and a safe fallback.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add apple_native_translateThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
apple_native_translate: ^0.1.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:apple_native_translate/apple_native_translate.dart';