cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

localization issue -Not able to find resource bundle

0 Likes
1,358

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!!!!

Accepted Solutions (0)

Answers (1)

Answers (1)

sasethia
Explorer
0 Likes

Correct locale would be in_ID, use this and it should solve the issue.