@Override
    public String translate(String text, String targetLanguage) throws TikaException, IOException {
        String sourceLanguage = detectLanguage(text).getLanguage();
        return translate(text, sourceLanguage, targetLanguage);
    }
Default translate method which uses built Tika language identification.

@param text           The text to translate.
@param targetLanguage The desired language to translate to (for example, "hi").
@return The translated text.
@throws Exception
tika-translate/src/main/java/org/apache/tika/language/translate/impl/ExternalTranslator.java