When you call a remote API which includes a Locale parameter, it would be useful to be able to call the method passing the locale in the Accept-Language header, instead of passing it in the parameter list.
This way, one service method like service.foo(id, locale) could be called as service.foo(id, locale) or service.foo(id) + accept-language header.
Consider the following points:
- What if already exists a method version without the locale parameter?
- What if the locale is passing as String instead of Locale data type (like languageId in JournalArticle.getArticleContent)?