How to get the list of languages provided by a plugin

I'm creating a new wordpress plugin dealing with the admin languages, and I'm wondering if you know how to get the list of languages provided by a specific wordpress plugin ?

like this one :

lang_arr = wp_get_languages("plagin-name");

Topic l10n language plugins Wordpress

Category Web


I have to use this PHP function to get the list of files contained in the language directory of the plugin :

scandir($plg_dir."/language");

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.