Properly get the language code from the i18n tags.