How to get current locale in the controller I'm struggling to get current locale code from the controller, I would use craft.locale in the template, but craft()->locale does not do the trick.

Any help would be appreciated.
craft.locale from a template goes to the locale() method of the CraftVariable class, which just calls craft()-&gt;language from PHP, which you could use.