0

I have to check the browser language based on the language i am performing my business logic.

My portlet doProcessAction(ActionRequest actionRequest, ActionResponse actionResponse) accepts request and response.
I checked actionRequest.getLocale() which return every time en_IN as a language even though my browser language selected as hi_IN(which is hindi).

Any input from any one is highly appreciated.

Ravinder Reddy
  • 23,692
  • 6
  • 52
  • 82
Ravi Shet
  • 1
  • 1

1 Answers1

0

Browser language is not linked with liferay portal languages. Liferay will return you the language which user has set in his preferences. Control panel -> user settings -> Display Settings

User Profile/Language settings in Liferay

To get browser language go with this article get browser language