Java Locale API not working on dev | Community
Skip to main content
Level 5
April 14, 2023

Java Locale API not working on dev

  • April 14, 2023
  • 1 reply
  • 1296 views

Hi Folks,

 

I am facing one issue. Our requirement is to get current country name in sling model. java.util.Locale API is not working in dev. However it is working on local AEM instance AEM6.5 SP13.

Is there any known issue in AEM6.5 SP13 (set up on amazon AWS cloud) will not work?

Is there any open source API adobe recommend to use to get current country in sling model?

 

Appreciate any pointer on this.

 

Thanks,

Pradeep

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

joerghoh
Adobe Employee
Adobe Employee
April 16, 2023

how do you define" current locale" in the context of your application?

Level 5
April 16, 2023

Actually we need to fetch site visitor country in sling model. I could not see any request header which is giving site visitor country name. Please advise.

joerghoh
Adobe Employee
Adobe Employee
May 1, 2023

you mean the country the visitor is originating from? Or the locale of the country site (domain) the visitor is accessing?