In the control panel, if you go to

Admin -> General Configuration

there is an option for setting the default language. The select dropdown contains the list of languages that are supported.

Is there a way to get this list of languages either in the templates or inside a plugin function?

1 Answer 1


I am not sure if there is any template tag for it but all the languages can be fetched with code.

Basically all the language options displayed from the installed language packs within the directory "system/expressionengine/language/". I think, you can develop a small plugin for it with the following code example:

$languages = ee()->admin_model->get_installed_language_packs();

See $languages is an array of all languages.

I hope, it would help you.

  • Yep. This does the trick. Strange that this cannot be found in the documentation. Or at least, I didn't find it. Aug 27, 2013 at 2:17

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.