Localization in the API

Hi Devs,

I’ve noticed that the API doesn’t seem to be using any localization or custom messaging? Is there a way to load the same localization system used in the client?

For example, I’ve made this change here:

Clearly, it’s not being localized, but I think it should be, and hooking it up (if possible) would be of benefit for the future.

Issue: https://github.com/Chocobozzz/PeerTube/issues/1732