plesk/plesk-ext-sdk

Localization for route title?

Closed this issue · 1 comments

In extension.config.js you can describe the route title. But can it be localizable?

{
            path: '/access',
            component: 'domain/RemoteAccess',
            title: 'Remote Access', // <-- this one
        }

For localizing the page title you should set a special key in locales:

<?php
$messages = [
    'app' => [
        'domain' => [
            'RemoteAccess' => [
                'title' => 'Remote Access Title',
            ],
        ],
    ],
];