wikimedia/mediawiki-extensions-Translate

View on GitHub
src/PageTranslation/TranslateExt.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
declare( strict_types = 1 );

namespace MediaWiki\Extension\Translate\PageTranslation;

use Wikimedia\Parsoid\Ext\ExtensionModule;

class TranslateExt implements ExtensionModule {

    /** @inheritDoc */
    public function getConfig(): array {
        return [
            'name' => 'Translate',
            'annotations' => [
                'tagNames' => [ 'translate', 'tvar' ],
                'annotationStripper' =>
                    [
                        'class' => TranslateAnnotationStripper::class,
                        'services' => [ 'Translate:TranslatablePageParser' ]
                    ],
            ],
        ];
    }
}