Switching to a custom language using the language picker doesn't work


Description

When trying to change the language to a custom language (For example Danish) from the language picker, the page reloads but the language doesn't change in the instance.

Cause

This occurs because of the invalid language code in the sys_choice table.

Checking the de-bug logs show Invalid language:

Resolution

Using the correct language code in the sys_choice table for preferred_language element should help resolve the issue.

Additional Information