Is there a way to get the default language set in Admin -> General Configuration in an add-on(module, extension, plugin)?

1 Answer 1


It's a config item, so you can get it using the Config object, thus:

  • Thanks for the quick response. I originally though it was ee()->config->item('language') but I was wrong. Feb 12, 2014 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.