Another question has a great answer:
import org.springframework.context.i18n.LocaleContextHolder as LCH
...
class MyServiceOrMyDomain {
def messageSource
...
messageSource.getMessage(key, ["myArg"].toArray(), LCH.getLocale())
...
}
Thanks fabien7474
source
share