guess you actually mean:
```
flask.request.locale_html = flask.request.locale.replace('_', '-')
```

And that would of course be just fine...