Add support to request messages from a specific locale
Using Rincl and logging everything at the same time has been difficult to maintain since we need two versions of each message, one to show to the user on its required locale and another in English to be logged.
Starting from that it would help the Rincl's users to have a method to get the message from a specific locale .
An optional Locale parameter has been added to the Resources retrieval methods.
This is a great idea, but it turns out the best place to specify the locale is not on the Resources instance, but when retrieving a Resources instance. A Resources instance represents the resources for a particular local. Thus if a class implements Rincled, instead of:
You will use: