Wordpress - One store (common products), many languages

Is it possible to show products in [es_ES] if we have another language active?

function my_modify_main_query($query)
{
   $query->set( 'lang', 'es_ES' ); //does not display products 
}
add_action( 'pre_get_posts', 'my_modify_main_query');

I use a polylang plugin.