Initial working language detection

Change-Id: Ide5f047d5f7591531d9b230111cf108324a134c9