TranslationCallback typedef

TranslationCallback = Future<Set<TermVariant>> Function(String term, Language sourceLanguage, Language targetLanguage)

Returns translations for term from sourceLanguage to targetLanguage as a collection of TermVariants.

Implementation

typedef TranslationCallback = Future<Set<TermVariant>> Function(
    String term, Language sourceLanguage, Language targetLanguage);