Hi,
As the title says, my code looks like this:
$aPage = $pages->get('selector');
$default = $languages->get('default');
$language1 = $languages->get('language1');
$language2 = $languages->get('language2');
$aPage->setOutputFormatting(false);
$aPage->title->setTrackChanges(true); // remove this and title will be empty
$aPage->title->setLanguageValue($default, 'title');
$aPage->title->setLanguageValue($language1, 'title1');
$aPage->title->setLanguageValue($language2, 'title2');
$aPage->save();
The reason I'm asking is I can't find any mention of this in the documentation and it took quite some time to figure out.