Do not set locale by default

Locale will only be set if the locale attribute is set.