Fix `defaultLocale` and cleanup whitespace

remove from here, and use the detection process to set the defaultLocale in constructor.