Hello,
In addition to using gettext, please add the following code to
wp-content/themes/xstore-child/functions.php
add_action( 'init', function () {
if ( wp_doing_ajax() ) {
switch_to_locale( get_option( 'WPLANG' ) ?: 'ar' );
}
}, 0 );
Best regards,
The 8Theme Team















