I'd just have an object like this

```js
function getStatus(slug) {
    return {
       'pending': gettext('Pending'),
       'public': gettext('Public'),
        ...
    }[slug];
}
```