Add language code aliases

Enable languages to set a language alias, for example 'en-us' would set an alias 'en'. This was mentioned in #963.