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

...t
I think this should be comparing locales and not languages because the use cases of this will still fail