Skip to Content
0
Jun 07, 2018 at 09:51 PM

localization issue -Not able to find resource bundle

920 Views

Hi Experts , I am facing a localization issue for Indonesian locale. When I am using below code Locale employeeLocale = commoni18NService.getLocaleForLanguage(commoni18NService.getLanguage(employeeModel.getLanguage()) -- It is reurning me "IN" as employeeLocale .

when Iam trying to pass this employeeLocale to l10nService.getResourceBundle(employeeLocale ) // I am getting composite resource bundle exception.

The exception says:

java.util.MissingResourceException: Can't find resource for bundle de.hybris.platform.servicelayer.i18n.impl.CompositeResourceBundle at java.util.ResourceBundle.getObject(Unknown Source) at java.util.ResourceBundle.getString(Unknown Source)


FYI , I have found that l10nService.getResourceBundle(employeeLocale ) is returning or considering "ID" as valid Indonesian locale instead of "IN".

Any help to resolve this issue is appreciated.

Thanks in advance!!!!