add support for `locale` to be a function that returns the value. I will propose to call that function like this:

```hash.locale.apply(context, hash);```