@Override
    public String translate(String text, String targetLanguage) throws TikaException, IOException {
        LanguageResult language = detectLanguage(text);
        String sourceLanguage = language.getLanguage();
        return translate(text, sourceLanguage, targetLanguage);
    }
@param translator the translator to set
tika-translate/src/main/java/org/apache/tika/language/translate/impl/CachedTranslator.java