Dialects are a process that has only gone halfway. There are no different languages but just variations on a theme. Those variations are the dialects and that is how a dialect develops.