Closed strarsis closed 1 year ago
So the amount of translations for that plugin and locale wasn't above the 90% threshold, hence no language packs are generated for it yet.
It would be still nice to have a feature in WP CLI language that allows to download the translations when there is no language pack yet.
Bug Report
Describe the current, buggy behavior When trying to install a specific language for a specific plugin, where the language exist, the
wp language plugin install
command printsLanguage '<language>' not available.
.Describe how other contributors can replicate this bug
de_DE
(de_DE_formal
would also work) (here:Advanced Order Export For WooCommerce
(woo-order-export-lite
)).wp language plugin install woo-order-export-lite de_DE
to install thede_DE
language for thewoo-order-export-lite
plugin. Note thatwp
CLI prints a warning that the specified languagede_DE
is not available and that no translation files are downloaded and become available:Describe what you would expect as the correct outcome The specific language that is available should be successfully installed and become available.
Let us know what environment you are running this on
Provide a possible solution (Not sure what is responsible: The language API; the request to the language API?).
Provide additional context/Screenshots Translations are available for language
de_DE
for that specific plugin: https://translate.wordpress.org/locale/de/default/wp-plugins/woo-order-export-lite/There is a notice though on the German (
de_DE
) version of the plugin page that indicates that the plugin hadn't been translated in German yet - but the translate list contradicts this, as a quite high percentage is already translated.