I am trying to use messages from the messages.properties and according to the i18n documentation. it takes to use the message(code: "some.properties.label", args: ['var1', 'vars2'])
but it doesn't work. Always getting :
Caused by: groovy.lang.MissingMethodException: No signature of method: com.project.MainService.message() is applicable for argument types: (java.util.LinkedHashMap)
On the other hand when I use the messageSource.getMessage("code",null,null)
it works.
Obviously I like the method in the documentation because it's straight to the point but for some reason doesn't work for me.Looks like for quite people on stackoverflow. So grails gurus, where is the catch?
Thanks