wfMessage( 'summary' )->parse(), 'minoredit' => wfMessage( 'minoredit' )->parse(), 'watchthis' => wfMessage( 'watchthis' )->parse(), ); return 've.init.platform.addMessages(' . FormatJson::encode( $messages ) . ');'; } public function getMessages() { // We don't actually use the i18n on the client-side, but registering the messages // is needed to make cache invalidation work return array( 'summary', 'minoredit', 'watchthis' ); } public function getDependencies() { return array( 'ext.visualEditor.base' ); } }