TRUNK-4429: Add check that default locale is amongst allowed locales list