src/Viserio/Component/Translation/DataCollector/ViserioTranslationDataCollector.php
public function getPanel(): string
    {
        $sortedMessages = $this->getSortedMessages($this->data['messages']);

        $tableHeaders = [
            'Locale',
            'Domain',
            'Times used',
            'Message ID',
            'Message Preview',
        ];

        return $this->createTabs([
            [
                'name' => 'Defined <span class="counter">' .
                    $this->data['counted'][TranslatorContract::MESSAGE_DEFINED] .
                    '</span>',
                'content' => $this->createTable(
                    \array_values($sortedMessages[TranslatorContract::MESSAGE_DEFINED]),
                    [
                        'name'      => 'These messages are correctly translated into the given locale.',
                        'headers'   => $tableHeaders,
                        'vardumper' => false,
                    ]
                ),
            ],
            [
                'name' => 'Fallback <span class="counter">' .
                    $this->data['counted'][TranslatorContract::MESSAGE_EQUALS_FALLBACK] .
                    '</span>',
                'content' => $this->createTable(
                    \array_values($sortedMessages[TranslatorContract::MESSAGE_EQUALS_FALLBACK]),
                    [
                        'name'      => 'These messages are not available for the given locale but Narrowspark found them in the fallback locale catalog.',
                        'headers'   => $tableHeaders,
                        'vardumper' => false,
                    ]
                ),
            ],
            [
                'name' => 'Missing <span class="counter">' .
                    $this->data['counted'][TranslatorContract::MESSAGE_MISSING] .
                    '</span>',
                'content' => $this->createTable(
                    \array_values($sortedMessages[TranslatorContract::MESSAGE_MISSING]),
                    [
                        'name' => 'These messages are not available for the given locale and cannot be found in the fallback locales.' .
                        ' <br> Add them to the translation catalogue to avoid Narrowspark outputting untranslated contents.',
                        'headers'   => $tableHeaders,
                        'vardumper' => false,
                    ]
                ),
            ],
        ]);
    }
public function getPanel(): string
    {
        $sortedMessages = $this->getSortedMessages($this->data['messages']);

        $tableHeaders = [
            'Locale',
            'Domain',
            'Times used',
            'Message ID',
            'Message Preview',
        ];

        return $this->createTabs([
            [
                'name' => 'Defined <span class="counter">' .
                    $this->data['counted'][TranslatorContract::MESSAGE_DEFINED] .
                    '</span>',
                'content' => $this->createTable(
                    \array_values($sortedMessages[TranslatorContract::MESSAGE_DEFINED]),
                    [
                        'name'      => 'These messages are correctly translated into the given locale.',
                        'headers'   => $tableHeaders,
                        'vardumper' => false,
                    ]
                ),
            ],
            [
                'name' => 'Fallback <span class="counter">' .
                    $this->data['counted'][TranslatorContract::MESSAGE_EQUALS_FALLBACK] .
                    '</span>',
                'content' => $this->createTable(
                    \array_values($sortedMessages[TranslatorContract::MESSAGE_EQUALS_FALLBACK]),
                    [
                        'name'      => 'These messages are not available for the given locale but Narrowspark found them in the fallback locale catalog.',
                        'headers'   => $tableHeaders,
                        'vardumper' => false,
                    ]
                ),
            ],
            [
                'name' => 'Missing <span class="counter">' .
                    $this->data['counted'][TranslatorContract::MESSAGE_MISSING] .
                    '</span>',
                'content' => $this->createTable(
                    \array_values($sortedMessages[TranslatorContract::MESSAGE_MISSING]),
                    [
                        'name' => 'These messages are not available for the given locale and cannot be found in the fallback locales.' .
                        ' <br> Add them to the translation catalogue to avoid Narrowspark outputting untranslated contents.',
                        'headers'   => $tableHeaders,
                        'vardumper' => false,
                    ]
                ),
            ],
        ]);
    }
{@inheritdoc}