Jump to content

Frontend language in backend controller


tudro

Recommended Posts

it depends on which context your in, if you're executing a display hook for the frontend, $this->context->language->id will be the frontend language in the frontend, if you're executing a hook for the backend, or in a AdminController, you'll get the language of the user logged into the backend.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...