Last updated:
0 purchases
language detector
Language Detector #
Detect language of any text.
Getting started #
Add this to your package's pubspec.yaml file
dependencies:
language_detector: ^1.0.0
copied to clipboard
Usage #
Next, you just have to import the package using:
import 'package:language_detector/language_detector.dart';
copied to clipboard
Widget build(BuildContext context) {
return OutlinedButton(
onPressed: () async {
var language = await LanguageDetector.getLanguageName(
content: 'helo');
var code = await LanguageDetector.getLanguageCode(
content: 'helo');
},
child: const Text("Get Language >"),
),
}
copied to clipboard
Additional information #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.