Replace setLocale and freeze with a more master-like API