<?php

// Check all keys used in verification-notice view
$keys = [
    'app/register.verification.title',
    'app/register.verification.activate-account',
    'app/register.verification.welcome',
    'app/register.verification.registration-complete',
    'app/register.verification.email-sent',
    'app/register.verification.email-resent',
    'app/register.verification.no-email',
    'app/register.verification.resend-link',
    'app/register.verification.download-game',
    'app/register.verification.download-now',
    // Progress component keys
    'app/register.progress-texts.register',
    'app/register.progress-texts.activate-download',
    'app/register.progress-texts.install-play',
    // Layout keys
    'app/main.title',
    'app/main.header.register',
    'app/main.header.welcome',
    'app/main.nav.home',
];

$registerData = include('es/app/register.php');
$mainData = include('es/app/main.php');

echo "=== Checking Spanish keys ===\n\n";

foreach ($keys as $fullKey) {
    list($file, $key) = explode('.', $fullKey, 2);

    if ($file === 'app/register') {
        $data = $registerData;
    } elseif ($file === 'app/main') {
        $data = $mainData;
    }

    if (isset($data[$key])) {
        echo "✓ $fullKey\n";
    } else {
        echo "✗ MISSING: $fullKey\n";
    }
}

echo "\n=== Spanish register.php keys ===\n";
print_r(array_keys($registerData));

echo "\n=== Spanish main.php keys ===\n";
print_r(array_keys($mainData));
