Register the 12 additional languages (fr, de, it, nl, pl, el, ja, ko, zh, ru, tr, ar) as available UI locales so the language switcher and the API accept them, keeping the set in lockstep with the ContentLanguage enum. - config/languages.php lists all 15 UI locales with their native names. - ContentLanguage::isRtl() drives the document `dir`; SetLocale shares it to the Blade root and HandleInertiaRequests shares it to Inertia, and app.ts mirrors it on SPA navigations so RTL locales lay out correctly. - dayjs imports the 12 new locales so dates localize instead of falling back to English. - A LocalizationParityTest guards against key drift: every locale must ship every base translation file with exactly the keys of lang/en.
37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="{{ $htmlDir ?? 'ltr' }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
@include('partials.gtm')
|
|
|
|
{{-- Inline page-paint background. Matches `--background` so the
|
|
first paint doesn't flash white before CSS loads. --}}
|
|
<style>
|
|
html {
|
|
background-color: #faf8f5;
|
|
}
|
|
</style>
|
|
|
|
<title data-inertia>{{ config('app.name', 'TryPost.it') }}</title>
|
|
|
|
<link rel="icon" href="/favicon.ico" sizes="any">
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
|
|
<!-- Fonts: Figtree (UI), Instrument Serif (display headlines),
|
|
JetBrains Mono (code/numbers). Mirrors the marketing site. -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Figtree:wght@300..900&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
|
|
|
|
@vite(['resources/js/app.ts'])
|
|
@inertiaHead
|
|
</head>
|
|
<body class="font-sans antialiased">
|
|
@include('partials.gtm-noscript')
|
|
@inertia
|
|
</body>
|
|
</html>
|