you should make the `$locale` nullable