Set current locale.

def locale(self, value):
        """Set current locale."""
        if not isinstance(value, Locale):
            value = Locale.parse(value)
        self.local.babel_locale = value