Skip to content

Commit 0f680e7

Browse files
author
Erika Gili
committed
Set dafault available language only for core
1 parent 73a5a52 commit 0f680e7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/WP_CLI/CommandWithTranslation.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ protected function download_language_pack( $download, $slug = null ) {
251251
protected function get_installed_languages( $slug = 'default' ) {
252252
$available = wp_get_installed_translations( $this->obj_type );
253253
$available = ! empty( $available[ $slug ] ) ? array_keys( $available[ $slug ] ) : array();
254+
if ( 'default' === $slug ) {
255+
$available[] = 'en_US';
256+
}
254257

255258
return $available;
256259
}

0 commit comments

Comments
 (0)