feat(i18n): translation files DE/EN/UK/RU + layout integration (closes #74)

This commit is contained in:
Hermes
2026-06-04 09:31:34 +00:00
parent ce21242308
commit 4b1c779846
14 changed files with 1799 additions and 850 deletions

View File

@@ -4,15 +4,24 @@ declare(strict_types=1);
namespace App\Controllers;
use App\Core\I18n;
use App\Core\Locale;
class ImpressumController extends Controller
{
public function index(): void
{
$locale = LocaleController::current();
$this->render('impressum/index', [
'pageTitle' => 'Impressum Haus Schleusingen',
'pageDescription' => 'Impressum der Website haus-schleusingen.de',
'pageTitle' => I18n::t('legal.imprint_h1', [], $locale) . ' ' . I18n::t('site.title', [], $locale),
'pageDescription' => I18n::t('legal.imprint_h1', [], $locale) . ' ' . I18n::t('site.title', [], $locale),
'robots' => 'noindex',
'canonical' => 'https://haus-schleusingen.de/impressum',
'canonical' => I18n::t('site.canonical_base', [], $locale) . '/impressum',
'ogLocale' => Locale::toOgLocale($locale),
'ogUrl' => I18n::t('site.canonical_base', [], $locale) . '/impressum',
'ogTitle' => I18n::t('legal.imprint_h1', [], $locale),
'ogDescription' => I18n::t('legal.imprint_h1', [], $locale),
]);
}
}