I have a site with multiple language. Assume I have a node (nid = 1) with origin languages is en and translate to es. And I clone this node with code:
$ node = Node::load(1); $ nodeDuplicate = $ node->createDuplicate(); $ nodeDuplicate->save();
$ node = Node::load(1); $ insert = $ node->isNew(); $ node->save();
all both are working. And I have a new node (nid = 2), and the new node have two content translate en, es same the node id 1.
But I don’t want clone all content translate. I only want to clone one language es or en. So how can do that?