{"id":18885712,"url":"https://github.com/dlutton/flutter_language_id","last_synced_at":"2026-03-14T00:42:01.797Z","repository":{"id":56829612,"uuid":"278959467","full_name":"dlutton/flutter_language_id","owner":"dlutton","description":"Flutter Language Identification package","archived":false,"fork":false,"pushed_at":"2020-07-12T20:19:55.000Z","size":72,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-20T21:58:40.534Z","etag":null,"topics":["android","dart","flutter","flutter-plugin","google","google-ml-kit","ios","java"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dlutton.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-11T23:43:12.000Z","updated_at":"2023-07-19T02:32:29.000Z","dependencies_parsed_at":"2022-09-02T05:50:38.385Z","dependency_job_id":null,"html_url":"https://github.com/dlutton/flutter_language_id","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlutton%2Fflutter_language_id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlutton%2Fflutter_language_id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlutton%2Fflutter_language_id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlutton%2Fflutter_language_id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlutton","download_url":"https://codeload.github.com/dlutton/flutter_language_id/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223645883,"owners_count":17179001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","dart","flutter","flutter-plugin","google","google-ml-kit","ios","java"],"created_at":"2024-11-08T07:21:13.298Z","updated_at":"2026-03-14T00:42:01.769Z","avatar_url":"https://github.com/dlutton.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Language Identification\n\n[![pub package](https://img.shields.io/pub/v/flutter_language_identification.svg?style=for-the-badge\u0026colorB=green)](https://pub.dartlang.org/packages/flutter_language_identification)\n\nA flutter plugin to identify language using [Google's ML Kit](https://developers.google.com/ml-kit/language/identification). (Swift,Java)\n\n## Features\n\n- [x] Android, iOS\n  - [x] identify language\n  - [x] identify possible languages\n\nTo use this plugin :\n\n### iOS\n\nGoogle's ML Kit requires a minimum deployment target of 10.0. You can add the line `platform :ios, '10.0'` in your iOS project `Podfile`.\n\nYou may also need to update your app's deployment target to 10.0 using Xcode. Otherwise, you may see compilation errors.\n\n### Flutter\n\n- add the dependency to your pubspec.yaml\n\n```yaml\n  dependencies:\n    flutter:\n      sdk: flutter\n    flutter_language_identification:\n```\n\n- instantiate FlutterLanguageIdentification\n\n```dart\nFlutterLanguageIdentification languageIdentification = FlutterLanguageIdentification();\n```\n\n### identifyLanguage, identifyPossibleLanguages\n\n```dart\nFuture _identifyLanguage() async{\n    await languageIdentification.identyLanguage(\"Hello World\");\n}\n\nFuture _identifyPossibleLanguages() async{\n    await languageIdentification.identifyPossibleLanguages(\"Hello World\");\n}\n```\n\n### Listening for platform calls to receive results\n\n```dart\nlanguageIdentification.setSuccessHandler((message) {\n    setState(() {\n    print(message);\n    _result = message;\n    });\n});\n\nlanguageIdentification.setErrorHandler((message) {\n    setState(() {\n    print(message);\n    });\n});\n\nlanguageIdentification.setFailedHandler((message) {\n    setState(() {\n    print(message);\n    _result = message;\n    });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlutton%2Fflutter_language_id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlutton%2Fflutter_language_id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlutton%2Fflutter_language_id/lists"}