I have an app with a clear distinction between domain, data, and presentation layers. I have my data model which is fetched from my server, which gets converted to a domain model and that is delivered to the presentation to be used for bindings and so on. I've been trying to localize my project. I have text that reads when a post was posted. eg. "1 hour ago", "Moments ago"...
I wanted to localize this and translate it but I cannot access string res from a data class without context. And I'd like to avoid passing context everywhere. How is this usually handled? It seems like a pretty common use-case of getString, but it seems I was wrong.