I tried to get the message / translation list from the resource bundle, but it fails (throws an exception). The application runs on Tomcat from IDEA:
Locale locale = new Locale("en"); ResourceBundle bundle = ResourceBundle.getBundle('i18n/dictionary', locale);
What is wrong here. i18n / dictionary is on the way to the class. Cannot be "i18n / dictionary".
I can get the message source, but I canβt get the keys to this object (SPRING):
def messageSource = grailsAttributes.getApplicationContext().getBean("messageSource");
source share