wp-cli / language-command

Installs, activates, and manages language packs.
MIT License
13 stars 21 forks source link

Remove default available translation for plugins and themes #154

Open dottxado opened 1 month ago

dottxado commented 1 month ago

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

This should fix #84

Related https://github.com/wp-cli/wp-cli/issues/5955