move the setting of the default language from i18n middleware into its own endpoint
use the set_default_language endpoint to change the server language