public static void detectLanguage(final String text, final Consumer<Language> successConsumer, final Consumer<String> errorConsumer) {
        // identify listing language
        LanguageIdentification.getClient().identifyLanguage(text)
                .addOnSuccessListener(lngCode -> successConsumer.accept(new Language(lngCode)))
                .addOnFailureListener(e -> errorConsumer.accept(e.getMessage()));
    }
Checks if the language model for the source (from parameter) or target (from setting) language are missing
main/src/main/java/cgeo/geocaching/utils/OfflineTranslateUtils.java