Hey,
I have a Jmix project and I’m trying to localize it to support several languages. I’m encountering a weird issue where the entities and framework buttons get localized fine.
However, when I put a caption on any screen, they are correctly resolved by the IDE to their values but when I run the project I get the localization key displayed instead of the localization message.
I debugged it a bit and I found that it throws an exception here:
public String getMessage(String group, String key, Locale locale) {
checkNotNullArgument(group, "group is null");
checkNotNullArgument(key, "key is null");
checkNotNullArgument(locale, "locale is null");
try {
return messageSource.getMessage(getCode(group, key), null, locale);
} catch (NoSuchMessageException e) {
return fallbackMessageOrKey(group, key, locale);
}
}
and goes to the fallbackMessageOrkey… what would cause such behavior? They key is there. Am I missing something?