I am using polylang
plugin for multiple language in my project. I created a custom Event using following code.
function post_types()
{
$labels = array(
"name" => "Events",
"add_new_items" => "Add New Event",
"edit_item" => "Edit Event",
"all_items" => "All Events",
"singular_name" => "Event"
);
$events = array(
"has_archive" => true,
"public" => true,
"menu_icon" => "dashicons-calendar",
"labels" => $labels,
);
register_post_type("event", $events);
}
add_action("init", "post_types");
I am not sure how can I change the language of the posts inside this event?