config language detection