I believe the function to use here is `get_installed_language_packs` from `i18n`.