I18n access from @Model(adaptables = Resource.class)
I need to access the translations library from my Model - Resource.class
I manage to do it within a Model - SlingHttpServletRequest.class
To instantiate i18n I need either the slingHttpServletRequest, or the resourceBundle but, from within my humble resource class,
I am not being able to get any of them.
I tried with @Model(adaptables= {Resource.class, SlingHttpServletRequest.class}), but when I try to inject the request the my page does not render.
Does any of you manages to access i18n from a @model Resource.class?
Any help would be greatly appreciated!