php: shows Arabic publications on the Arabic page and shows English publications on English pages using $ wpb_all_query

I'm using this line to get all the publications with the category "Next event"

$ wpb_all_query = new WP_Query (array (& # 39; post_type & # 39; => & # 39; post & # 39 ;, & # 39; category_name & # 39; =>
& # 39; Next Event & # 39 ;, & # 39; post_status & # 39; => & # 39; publish & # 39 ;, & # 39; posts_per_page & # 39; => 6, & # 39; paged & # 39; =>
$ paged));

is working well, the problem is that there is an Arabic version of that page and I want to show the publications in Arabic that have the category "Next event AR".

I tried to use this:

                if (get_locale () == & # 39; en_US & # 39;) {
$ wpb_all_query = new WP_Query (array (& # 39; post_type & # 39; => & # 39; post & # 39 ;,
& # 39; category_name & # 39; => & # 39; Next event & # 39 ;, & # 39; post_status & # 39; => & # 39; publish & # 39 ;,
& # 39; posts_per_page & # 39; => 6, & # 39; paged & # 39; => $ paged));
} else {
$ wpb_all_query = new WP_Query (array (& # 39; post_type & # 39; => & # 39; post & # 39 ;,
& # 39; category_name & # 39; => & # 39; Upcoming Event AR & # 39 ;,
& # 39; post_status & # 39; => & # 39; publish & # 39 ;, & # 39; posts_per_page & # 39; => 6, & # 39; paged & # 39; => $ paged
));
}   

English is shown in the English version of the page, but Arabic is not shown at all.

Please help :/