public function install( $args, $assoc_args ) {
		$all = \WP_CLI\Utils\get_flag_value( $assoc_args, 'all', false );

		if ( ! $all && count( $args ) < 2 ) {
			\WP_CLI::error( 'Please specify a plugin, or use --all.' );
		}

		if ( $all ) {
			$this->install_many( $args, $assoc_args );
		} else {
			$this->install_one( $args, $assoc_args );
		}
	}
public function install( $args, $assoc_args ) {
		$all = \WP_CLI\Utils\get_flag_value( $assoc_args, 'all', false );

		if ( ! $all && count( $args ) < 2 ) {
			\WP_CLI::error( 'Please specify a plugin, or use --all.' );
		}

		if ( $all ) {
			$this->install_many( $args, $assoc_args );
		} else {
			$this->install_one( $args, $assoc_args );
		}
	}
public function install ( $ args , $ assoc_args ) { $ all = \ WP_CLI \ Utils \ get_flag_value ( $ assoc_args , 'all' , false ) ; if ( ! $ all && count ( $ args ) < 2 ) { \ WP_CLI :: error ( 'Please specify a plugin, or use --all.' ) ; } if ( $ all ) { $ this -> install_many ( $ args , $ assoc_args ) ; } else { $ this -> install_one ( $ args , $ assoc_args ) ; } }
Installs a given language for a plugin.

Downloads the language pack from WordPress.org.

## OPTIONS

[<plugin>]
: Plugin to install language for.

[--all]
: If set, languages for all plugins will be installed.

<language>...
: Language code to install.

[--format=<format>]
: Render output in a particular format. Used when installing languages for all plugins.
---
default: table
options:
- table
- csv
- json
- summary
---

## EXAMPLES

# Install the Japanese language for Akismet.
$ wp language plugin install akismet ja
Downloading translation from https://downloads.wordpress.org/translation/plugin/akismet/4.0.3/ja.zip...
Unpacking the update...
Installing the latest version...
Translation updated successfully.
Language 'ja' installed.
Success: Installed 1 of 1 languages.

@subcommand install
Installs a given language for a plugin .