en_US translations may not be always installed in the case of plugins and themes, so I removed the line of code that assumes the availability of the language for anything different than the core. Now the available translations are the only ones got from wp_get_installed_translations.
I needed to remove some tests because removing the assumption on the language is no more generating a good test case, and this make me think that this solution is not the best one. More in the issue discussion #84
en_US
translations may not be always installed in the case of plugins and themes, so I removed the line of code that assumes the availability of the language for anything different than the core. Now the available translations are the only ones got fromwp_get_installed_translations
.I needed to remove some tests because removing the assumption on the language is no more generating a good test case, and this make me think that this solution is not the best one. More in the issue discussion #84
This should fix #84
Related https://github.com/wp-cli/wp-cli/issues/5955