ソースを参照

Add six complete blog translations and route-aware language navigation

zhangwei123 1 ヶ月 前
親
コミット
317182004f

+ 35 - 0
docs/editorial/blog-multilingual-verification.md

@@ -0,0 +1,35 @@
+# Seven-language blog extension
+
+Scope authorized on 2026-10-09: the same three Ireland-resident appointment guides for the Netherlands, Greece and Denmark, in English plus German, French, Spanish, Italian, Portuguese and Simplified Chinese. No extra destination topics. The English source and official URLs/review dates remain unchanged.
+
+## Routing and navigation
+
+- English stays `/blogs`; translated indexes use `/de/blogs`, `/fr/blogs`, `/es/blogs`, `/it/blogs`, `/pt/blogs`, `/zh/blogs`.
+- Article IDs associate translations. Slugs are stable across the current collection, but the selector resolves actual stored counterpart paths rather than constructing a translated slug.
+- The actual shared Navbar remains the single presentation/auth implementation. Blog-only dictionaries localize its labels; a native select replaces the old navigation-only EN/ZH toggle and navigates to the current guide's counterpart. Index selection remains on an index.
+- Options include only visible counterparts. The server supplies route/ID data, not entire article bodies, to the client wrapper. Stored/browser language cannot override a blog route; the static HTML language owns article language.
+- Homepage language context, auth effects/endpoints and original `md` breakpoint retain their defaults. Blog navigation uses `xl` for desktop labels and an 80px selector on narrow screens to reduce crowding.
+
+## SEO and review gate
+
+- Each edition has its own translated title/description, self-canonical, Article/Breadcrumb schema and reciprocal alternates for actual eligible translations. English remains x-default.
+- Chinese uses valid `zh` HTML/hreflang/schema language and `zh_CN` Open Graph locale. All OG locales use language-region form.
+- `published` means local renderer eligibility only. `BLOG_INDEXING_ENABLED` stays disabled by default, yielding noindex pages and an empty sitemap. The explicit indexed verification build should have exactly 28 sitemap entries, 21 articles and seven indexes.
+- Preview/noindex is not access control. No remote publication or deployment is authorized by this implementation.
+
+## Verification scope
+
+The regression suites check source/date/booking URL parity, full-section counts and unchanged official Markdown links, duplicate routes, inventory, SSR locale labels, actual selected counterparts, canonical/alternates/schema, both indexing gates, unknown routes and representative pre-existing route headers. Provider/auth/mobile handlers are simulated; they are not authenticated browser tests.
+
+Independent factual review of all 18 translations passed on 2026-10-09 after minor wording corrections. A separate reader-value/SEO-GEO pass approved all 21 editions: clear booking intent, answer-first official routes, country-specific preparation/troubleshooting and source-grounded uncertainty. No decorative images or generic checklist tables were added. Final technical command receipts follow below. Browser-rendered tablet/mobile layout, hydration and real interactive navigation remain unverified in this environment. Existing full-project lint remains blocked by its pre-existing missing next/core-web-vitals configuration; focused changed-file lint is run separately.
+
+### Technical receipts (2026-10-09)
+
+- `node scripts/check-blog.mjs`: PASS, 21 records; structural source/date/link parity, publication fixtures, reciprocal alternates/canonical/sitemap.
+- `BLOG_INDEXING_ENABLED=true node scripts/check-blog.mjs --release`: PASS, exact 21-record inventory and all seven editions per topic.
+- `node scripts/check-blog-nav.cjs`: PASS, seven localized SSR dictionaries, current selected counterpart with deliberately different fixture slugs, index/article selection handlers, preserved provider defaults and simulated mobile/auth branches.
+- `node scripts/check-blog-style.mjs`: PASS, scoped style safeguards.
+- `tsc --noEmit --incremental false` and focused changed-file ESLint: PASS.
+- Indexed production build: PASS; both implementation and independent review HTTP suites verify 28 SSR pages and exactly 28 sitemap URLs.
+- English article objects are identical to c66ce79. Existing application pages, language context, auth implementation and business endpoints are unchanged. Shared Navbar changes are optional labels/control and blog-only breakpoint selection.
+- Default-noindex production rebuild and HTTP suite: PASS, all 28 localized pages retain noindex with an empty sitemap. Seven locale-specific unknown-article paths, archived Italy/unknown routes and ten pre-existing app URLs retain expected status/privacy headers. Final build is the noindex build.

+ 2 - 0
docs/editorial/blog-navigation-verification.md

@@ -1,3 +1,5 @@
+> Historical verification of the initial English cohort. The latest multilingual implementation and receipts are documented in `blog-multilingual-verification.md`.
+
 # Shared homepage navigation — 2026-10-09
 
 Baseline: `a61bae39fd4fff39c4c64f1f8d22d95d8e34967d`.

+ 2 - 0
docs/editorial/blog-verification.md

@@ -1,3 +1,5 @@
+> Historical verification of the initial English cohort. The latest multilingual implementation and receipts are documented in `blog-multilingual-verification.md`.
+
 # English appointment guides: local verification
 
 Date: 2026-10-09. Repository baseline: `37aed62fa278a6149df2ee937cc4bf13edd969a4` (`jerry/web-ui`). Read-only remote HEAD matched before implementation. No commit, push, deployment, Search Console submission or backend mutation is included.

+ 12 - 6
scripts/check-blog-http.mjs

@@ -23,6 +23,8 @@ for (const locale of new Set(visible.map(a => a.locale))) {
     assert(/<title>[^<]+STRATA<\/title>/.test(html), `Missing title: ${a.path}`);
     assert(/name="description" content="[^"]+"/.test(html));
     assert(html.includes(`property="og:url" content="https://text.skin${a.path}"`));
+    const ogLocales = { en:'en_IE', de:'de_DE', fr:'fr_FR', es:'es_ES', it:'it_IT', pt:'pt_PT', zh:'zh_CN' };
+    assert(html.includes(`property="og:locale" content="${ogLocales[locale]}"`));
     const variants = a.id ? published.filter(b => b.id === a.id) : [...new Set(published.map(b => b.locale))].map(locale => ({ locale }));
     for (const b of variants) assert(html.includes(`hrefLang="${b.locale}" href="https://text.skin${b.id ? pathFor(b) : indexFor(b.locale)}"`), `Missing SEO alternate ${a.path} → ${b.locale}`);
     const alternateCount = (html.match(/rel="alternate" hrefLang=/g) || []).length;
@@ -32,7 +34,11 @@ for (const locale of new Set(visible.map(a => a.locale))) {
     assert(!html.includes('class="blog-languages"'), 'Duplicate blog language row must be absent');
     for (const target of ['/services', '/slots', '/login']) assert(html.includes(`href="${target}"`), `Missing shared navigation action: ${target}`);
     assert(html.includes('aria-expanded="false"'), 'Mobile menu must SSR closed');
-    assert(html.includes('Login / Sign up') && html.includes('Slot Check'), 'Navigation must SSR in English');
+    assert(html.includes('<select') && html.includes('lang="'+locale+'"'), 'Missing locale navigation selector');
+    const options = [...html.matchAll(/<option[^>]*value="([^"]+)"/g)].map(m => m[1]);
+    const expectedOptions = a.id ? visible.filter(b => b.id === a.id).map(pathFor) : [...new Set(visible.map(b => b.locale))].map(indexFor);
+    assert.deepEqual([...new Set(options)].sort(), expectedOptions.sort(), 'Navigation must link actual counterparts');
+    assert([...html.matchAll(/<option[^>]+>/g)].some(([tag]) => tag.includes(`value="${a.path}"`) && tag.includes('selected=""')), 'Current locale counterpart must be selected');
     if (a.id) {
       assert(/<h1>.+?<\/h1>/.test(html), 'Missing server-rendered heading');
       assert(/<h2>.+?<\/h2>/.test(html), 'Missing server-rendered article body');
@@ -48,7 +54,7 @@ for (const locale of new Set(visible.map(a => a.locale))) {
     checked++;
   }
 }
-for (const route of ['/xx/blogs', '/en/blogs', '/de/blogs', '/fr/blogs', '/es/blogs', '/it/blogs', '/pt/blogs', '/blogs/nonexistent-guide', '/de/blogs/nonexistent-guide', '/blogs/italy-visa-appointments-dublin-prenotami', '/blogs/no-italy-visa-appointments-dublin', '/blogs/italy-tourist-visa-documents-ireland', '/nonexistent-route']) {
+for (const route of [...new Set(visible.map(a => `${indexFor(a.locale)}/nonexistent-guide`)), '/xx/blogs', '/en/blogs', '/blogs/nonexistent-guide', '/de/blogs/nonexistent-guide', '/blogs/italy-visa-appointments-dublin-prenotami', '/blogs/no-italy-visa-appointments-dublin', '/blogs/italy-tourist-visa-documents-ireland', '/nonexistent-route']) {
   assert.equal((await fetch(`${base}${route}`)).status, 404, `Should 404: ${route}`);
 }
 for (const route of ['/','/services','/slots','/login','/dashboard','/dashboard/settings','/admin','/payment/test','/payment/confirm','/create-order/test']) {
@@ -66,12 +72,12 @@ const sitemap = await (await fetch(`${base}/sitemap.xml`)).text();
 const urls = [...sitemap.matchAll(/<loc>(.*?)<\/loc>/g)].map(m => m[1]);
 assert.equal(urls.length, indexing ? published.length + new Set(published.map(a => a.locale)).size : 0);
 if (indexing) {
-  const expectedUrls = ['https://text.skin/blogs', ...approvedInventory.map(a => `https://text.skin/blogs/${a.slug}`)].sort();
-  assert.equal(expectedUrls.length, 4, 'Approved launch scope is 3 English guides plus index');
-  assert.deepEqual([...urls].sort(), expectedUrls, 'Sitemap must exactly match approved English cohort');
+  const expectedUrls = [...new Set(approvedInventory.map(a => `https://text.skin${indexFor(a.locale)}`)), ...approvedInventory.map(a => `https://text.skin${pathFor(a)}`)].sort();
+  assert.equal(expectedUrls.length, 28, 'Approved scope is 21 translated guides plus seven indexes');
+  assert.deepEqual([...urls].sort(), expectedUrls, 'Sitemap must exactly match approved multilingual cohort');
 }
 for (const url of urls) assert(url.startsWith('https://text.skin/') && /\/blogs(?:\/|$)/.test(url));
 const robots = await (await fetch(`${base}/robots.txt`)).text();
 assert(robots.includes('Disallow: /api/'));
 assert(!/Disallow: \/(?:blogs|admin|dashboard|login|payment|create-order)/.test(robots));
-console.log(`PASS: ${checked} server-rendered blog pages; language, metadata, sources, structured data; 13 excluded/unknown routes; query canonical; 10 existing routes; private headers; sitemap and robots.`);
+console.log(`PASS: ${checked} server-rendered blog pages; language, metadata, sources, structured data; excluded/unknown routes; query canonical; 10 existing routes; private headers; sitemap and robots.`);

+ 32 - 10
scripts/check-blog-nav.cjs

@@ -31,15 +31,37 @@ const nextMocks = {
   '@/lib/auth': { isAdmin: () => false, logout: () => {} },
 };
 const loadSSR = loader(nextMocks);
-const BlogNavbar = loadSSR('src/components/blog/BlogNavbar.tsx').default;
-const html = renderToStaticMarkup(React.createElement(BlogNavbar, { blogHref: '/blogs' }));
-for (const text of ['Services', 'Slot Check', 'Visa guides', 'Login / Sign up']) assert(html.includes(text), `Missing shared menu item: ${text}`);
-for (const href of ['/', '/blogs', '/services', '/slots', '/login']) assert(html.includes(`href="${href}"`));
-assert(html.includes('lang="en"') && html.includes('aria-expanded="false"'));
-assert(html.includes('aria-label="STRATA home"'));
-assert(html.includes('aria-label="ZH / 中文: Switch navigation language'), 'Accessible language-control name must include its visible target');
-assert(html.includes('Switch navigation language (article language stays unchanged)'));
-assert(!html.includes('服务工单库') && !html.includes('nav.services'), 'Blog navigation must SSR in English');
+const { navigationCopy } = loadSSR('src/lib/blog/translations.ts');
+const locales = ['en', 'de', 'fr', 'es', 'it', 'pt', 'zh'];
+const indexes = locales.map(locale => ({ locale, href: `${locale === 'en' ? '' : '/' + locale}/blogs` }));
+const articles = indexes.map(a => ({ ...a, id: 'netherlands', href: a.href + '/netherlands-' + a.locale }));
+for (const locale of locales) {
+  const current = articles.find(a => a.locale === locale);
+  const localizedLoad = loader({ ...nextMocks, 'next/navigation': { usePathname: () => current.href } });
+  const LocalNavbar = localizedLoad('src/components/blog/BlogNavbar.tsx').default;
+  const html = renderToStaticMarkup(React.createElement(LocalNavbar, { locale, indexes, articles }));
+  assert([...html.matchAll(/<option[^>]+>/g)].some(([tag]) => tag.includes(`value="${current.href}"`) && tag.includes('selected=""')), 'Current article must be selected');
+  for (const href of ['/', indexes.find(a => a.locale === locale).href, '/services', '/slots', '/login']) assert(html.includes(`href="${href}"`));
+  assert(html.includes(`lang="${locale}"`) && html.includes('aria-expanded="false"'));
+  assert(html.includes('<select') && !html.includes('article language stays unchanged'));
+  assert(html.includes('w-20 sm:w-auto') && html.includes('hidden xl:flex'), 'Blog navigation needs compact mobile selector and wider desktop breakpoint');
+  for (const a of articles) assert(html.includes(`value="${a.href}"`), 'Missing counterpart');
+  assert(!html.includes('nav.services'), 'Untranslated navigation key');
+  for (const key of ['nav.services', 'nav.slots', 'nav.blogs', 'nav.login']) assert(html.includes(navigationCopy[locale][key]), `Missing localized label: ${locale}/${key}`);
+}
+// Exercise the actual selector handler with explicit pathname fixtures.
+for (const current of [indexes[0], articles[0], indexes[6], articles[6]]) {
+  let assigned;
+  const load = loader({ ...nextMocks, 'next/navigation': { usePathname: () => current.href } }, { window: { location: { assign: href => assigned = href } } });
+  const tree = load('src/components/blog/BlogNavbar.tsx').default({ locale: current.locale, indexes, articles });
+  const nav = tree.props.children.props.children;
+  const selector = nav.props.languageControl;
+  const expected = 'id' in current ? articles : indexes;
+  assert.equal(selector.props.value, current.href);
+  assert.deepEqual(selector.props.children.map(option => option.props.value), expected.map(a => a.href));
+  selector.props.onChange({ target: { value: expected[1].href } });
+  assert.equal(assigned, expected[1].href);
+}
 
 // Simulated provider hooks test browser-preference isolation and document-language ownership.
 function providerCase(options, expectedDefault, detect) {
@@ -88,4 +110,4 @@ for (const [logged, admin, open] of [[false, false, false], [false, false, true]
   if (logged) { nodes.find(n => n.props?.title === 'logout').props.onClick(); assert.equal(logoutCalls, 1); assert(changes.some(([i, value]) => i === 2 && value === false)); }
   if (open) { nodes.find(n => n.props?.className?.includes('fixed inset-0')).props.onClick(); assert(changes.some(([i, value]) => i === 2 && value === false)); }
 }
-console.log('PASS: shared navbar SSR links/actions and English labels; provider defaults and document-language isolation; simulated mobile toggle/overlay and logged-out/user/admin/logout/storage branches. This is not browser interaction or authenticated end-to-end QA.');
+console.log('PASS: shared navbar SSR links/actions and seven-language labels/counterpart selection; provider defaults and document-language isolation; simulated mobile toggle/overlay and logged-out/user/admin/logout/storage branches. This is not browser interaction or authenticated end-to-end QA.');

+ 21 - 6
scripts/check-blog.mjs

@@ -5,7 +5,7 @@ import vm from 'node:vm';
 import ts from 'typescript';
 const root = process.cwd();
 const articles = JSON.parse(fs.readFileSync('src/content/blog/articles.json', 'utf8'));
-const locales = ['en', 'de', 'fr', 'es', 'it', 'pt'];
+const locales = ['en', 'de', 'fr', 'es', 'it', 'pt', 'zh'];
 const inventory = JSON.parse(fs.readFileSync('src/content/blog/approved-inventory.json', 'utf8'));
 assert.deepEqual(articles.map(a => `${a.locale}/${a.id}/${a.slug}`).sort(), inventory.map(a => `${a.locale}/${a.id}/${a.slug}`).sort(), 'Active collection must match the approved topic/locale/slug inventory');
 const keys = new Set();
@@ -30,6 +30,19 @@ for (const a of articles) {
     assert(articles.some(b => `${b.locale}/${b.slug}` === target), `Broken contextual link: ${match[1]}`);
   }
 }
+// Every translation retains the reviewed English source set and booking destination.
+for (const a of articles.filter(a => a.locale !== 'en')) {
+  const en = articles.find(b => b.id === a.id && b.locale === 'en');
+  assert(en, `Missing English master: ${a.id}`);
+  assert.equal(a.reviewedAt, en.reviewedAt);
+  assert.equal(a.officialBooking.url, en.officialBooking.url);
+  assert.deepEqual(a.sources.map(s => s.url).sort(), en.sources.map(s => s.url).sort());
+  assert.notEqual(a.title, en.title, 'Untranslated title');
+  assert.notEqual(a.body, en.body, 'Untranslated body');
+  const externalLinks = body => [...body.matchAll(/\]\((https?:[^)\s]+)\)/g)].map(m => m[1]).sort();
+  assert.deepEqual(externalLinks(a.body), externalLinks(en.body), 'Translation changed official body links');
+  assert.equal((a.body.match(/^## /gm) || []).length, (en.body.match(/^## /gm) || []).length, 'Translation omitted a section');
+}
 // Execute our TypeScript helpers with in-memory fixtures; never modify editorial publication flags.
 function loadModule(filename, fixture, indexing, cache = new Map()) {
   filename = path.resolve(root, filename);
@@ -50,16 +63,16 @@ const master = articles.find(a => a.locale === 'en');
 const fixture = locales.map(locale => ({ ...master, locale, published: true }));
 fixture.push({ ...master, id: 'unpublished', slug: 'unpublished', locale: 'en', published: false });
 const live = loadModule('src/lib/blog/data.ts', fixture, true);
-assert.equal(live.publishedArticles().length, 6);
-assert.equal(live.visibleArticles().length, 6);
+assert.equal(live.publishedArticles().length, 7);
+assert.equal(live.visibleArticles().length, 7);
 assert.equal(live.getArticle('en', 'unpublished'), undefined);
 const preview = loadModule('src/lib/blog/data.ts', fixture, false);
-assert.equal(preview.visibleArticles().length, 7);
+assert.equal(preview.visibleArticles().length, 8);
 const meta = loadModule('src/lib/blog/metadata.ts', fixture, true);
 for (const a of fixture.filter(a => a.published)) {
   const m = meta.blogMetadata(a.locale, a);
   assert.equal(m.alternates.canonical, `https://text.skin${a.locale === 'en' ? '' : `/${a.locale}`}/blogs/${a.slug}`);
-  assert.equal(Object.keys(m.alternates.languages).length, 7);
+  assert.equal(Object.keys(m.alternates.languages).length, 8);
   assert.equal(m.robots.index, true);
   assert.equal(m.openGraph.url, m.alternates.canonical);
 }
@@ -69,11 +82,13 @@ const draftMeta = loadModule('src/lib/blog/metadata.ts', articles.map(a => ({ ..
 assert.equal(draftMeta.blogMetadata('en', master).robots.index, false);
 assert.equal(Object.keys(draftMeta.blogMetadata('en', master).alternates.languages).length, 0);
 const sitemap = loadModule('src/app/sitemap.ts', fixture, true).default();
-assert.equal(sitemap.length, 12);
+assert.equal(sitemap.length, 14);
 assert(sitemap.every(a => /\/blogs(?:\/|$)/.test(a.url) && !a.url.includes('unpublished')));
 assert.equal(loadModule('src/app/sitemap.ts', fixture, false).default().length, 0);
 console.log(`PASS: ${articles.length} articles; content references, publication gates, reciprocal SEO alternates, canonical URLs, and sitemap fixtures.`);
 if (process.argv.includes('--release')) {
+  assert.equal(inventory.length, 21, 'Approved multilingual inventory is three guides in seven languages');
+  for (const a of articles.filter(a => a.locale === 'en')) assert.deepEqual(articles.filter(b => b.id === a.id).map(b => b.locale).sort(), [...locales].sort(), 'Each guide needs all seven reviewed editions');
   const expected = inventory.map(a => `${a.locale}/${a.id}`).sort();
   const actual = articles.filter(a => a.published).map(a => `${a.locale}/${a.id}`).sort();
   assert.deepEqual(actual, expected, 'Release blocked: published records must match the approved inventory exactly');

+ 6 - 6
seo_opt/BLUEPRINT.md

@@ -1,10 +1,10 @@
 # STRATA blog: compact SEO_OPT adaptation
 
-Status: approved local implementation of three English destination guides, 2026-10-09; no push or deployment authority. Target: `text.skin`, Gogs `jerry/web-ui`, Next.js 14.1.0. This document is a workflow specification, not evidence that publication, approval, indexing, or growth has happened.
+Status: approved local implementation of three destination guides in seven languages, 2026-10-09; no push or deployment authority. Target: `text.skin`, Gogs `jerry/web-ui`, Next.js 14.1.0. This document is a workflow specification, not evidence that publication, approval, indexing, or growth has happened.
 
 ## Scope and durable assets
 
-The framework supports English, German, French, Spanish, Italian and Portuguese; smaller languages remain deferred. Keyword and service-scope research is complete for this first decision. The user approved three English appointment guides for Ireland residents: Netherlands first, Greece and Denmark. No-slots checks and document preparation remain sections within each guide. Other languages and extra topics are conditional future work, not a launch quota. The old Italy drafts are preserved only in `docs/editorial/archive/italy-provisional-2026-10-08.json`, excluded from all routes and metadata. The report supporting this scope distinguishes Ireland Google Ads estimates, a Dublin SERP snapshot, missing data and population background; none proves traffic, conversion, or ranking outcomes.
+The approved locales are English, German, French, Spanish, Italian, Portuguese and Simplified Chinese. Keyword and service-scope research is complete for this first decision. The user approved three English appointment guides for Ireland residents: Netherlands first, Greece and Denmark. No-slots checks and document preparation remain sections within each guide. The user subsequently approved full translations of the same three guides and their blog/navigation UI into German, French, Spanish, Italian, Portuguese and Chinese: 21 articles and seven indexes. Extra topics remain future work. The old Italy drafts are preserved only in `docs/editorial/archive/italy-provisional-2026-10-08.json`, excluded from all routes and metadata. The report supporting this scope distinguishes Ireland Google Ads estimates, a Dublin SERP snapshot, missing data and population background; none proves traffic, conversion, or ranking outcomes.
 
 Use the article collection as the content inventory; `approved-inventory.json` is only the exact release allowlist for the approved IDs/locales/slugs, not a second task backlog. Keep this one blueprint, production content, code/tests, and normal Git/review receipts. Do not add a second backlog, daily report directories, raw response archives, per-article rule files, a scheduler, or an agent framework. No backend, booking automation, account, payment or credential work is included. No push, deployment, external publication, or Google submission is authorized by this plan.
 
@@ -31,7 +31,7 @@ Compare demand, intent, competition and fit to the real product before choosing
 
 ## Preflight and working loop
 
-Before each change: identify the repository/branch and current diff, actual article version, owner of each file, existing same-intent articles and unfinished reviews, current environment/domain, and authorized action. Preserve others' work. Check unknown external outcomes before retrying; do not recreate a task to bypass an unresolved write. State a concrete completion condition. Independent authorized work can continue around a blocker, but translations and additional topics remain outside the approved three-English-guide scope.
+Before each change: identify the repository/branch and current diff, actual article version, owner of each file, existing same-intent articles and unfinished reviews, current environment/domain, and authorized action. Preserve others' work. Check unknown external outcomes before retrying; do not recreate a task to bypass an unresolved write. State a concrete completion condition. Independent authorized work can continue around a blocker, but additional topics remain outside the approved three-guide scope; the six requested translations require factual and structural review before local eligibility.
 
 | Step | What / why / how | Smallest evidence or output |
 | --- | --- | --- |
@@ -48,7 +48,7 @@ Before each change: identify the repository/branch and current diff, actual arti
 
 ## Content gate for the approved first cohort
 
-Each intent family shares a stable article ID across locales. The article collection is the sole inventory; `published` is a production renderer inclusion flag, not user approval or a real-world publication receipt. The three current English records have passed independent editorial review and have `published:true` solely for local release-candidate verification. This is not remote publication authority; the default indexing gate remains off. Local review mode deliberately exposes draft routes with noindex; noindex is not access control and the review build must not be publicly deployed. `reviewedAt` is a genuine review date, not a claim that all sources were updated that day. Do not bump it without rechecking the content.
+Each intent family shares a stable article ID across locales. The article collection is the sole inventory; `published` is a production renderer inclusion flag, not user approval or a real-world publication receipt. Reviewed records receive `published:true` solely for local release-candidate verification; the approved multilingual inventory is 21 records once all translations pass review. This is not remote publication authority; the default indexing gate remains off. Local review mode deliberately exposes draft routes with noindex; noindex is not access control and the review build must not be publicly deployed. `reviewedAt` is a genuine review date, not a claim that all sources were updated that day. Do not bump it without rechecking the content.
 
 The approved guides must solve three distinct reader tasks:
 
@@ -68,7 +68,7 @@ STRATA's described product can book on a user's behalf. Do not rewrite it as not
 
 | Owner / step | Existing implementation targets | Acceptance |
 | --- | --- | --- |
-| Discovery owner, then content author after approval | `src/content/blog/articles.json`, contract `src/lib/blog/types.ts` | The current allowlist is three English Netherlands/Greece/Denmark guides. Archived Italy examples never enter the active collection. Approved records need shared IDs where genuinely equivalent, unique locale/slug pairs, real sources, accurate review dates and valid related IDs. |
+| Discovery owner, then content author after approval | `src/content/blog/articles.json`, contract `src/lib/blog/types.ts` | The current allowlist is three Netherlands/Greece/Denmark guides in seven reviewed languages (21 records). Archived Italy examples never enter the active collection. Approved records need shared IDs where genuinely equivalent, unique locale/slug pairs, real sources, accurate review dates and valid related IDs. |
 | Blog implementation: load only intended records and render routes | `src/lib/blog/data.ts`, `src/components/blog/{BlogShell,BlogViews}.tsx`; `src/app/(blog-en)/blogs/`; `src/app/(blog-localized)/[locale]/blogs/`; blog components | `/blogs` and `/{de,fr,es,it,pt}/blogs`, with article detail routes. Unknown locale/slug must not render an article. With indexing enabled, drafts must be excluded from routes, navigation, alternatives and sitemap. With indexing disabled, draft routes are intentionally reviewable. |
 | Blog implementation: localized presentation | `src/lib/blog/translations.ts`, route layouts and components | Correct `html lang`, complete UI copy and article text in each locale; links preserve intended language. No missing translation keys, raw namespace keys or accidental app locale coupling. |
 | Blog implementation: metadata and crawl policy | `src/lib/blog/metadata.ts`, `src/app/sitemap.ts`, `src/app/robots.ts` | One canonical per page, reciprocal actual translations, consistent JSON-LD, safe default indexing gate, accurate sitemap. |
@@ -81,7 +81,7 @@ The code owner owns implementation and test commands; this document does not cla
 
 Run from the target checkout, capture actual results in the normal review, and rerun affected checks after corrections:
 
-- Inventory/schema checks: only the six allowed locales; coverage exactly matches the approved inventory; stable unique slugs; nonempty bodies/descriptions; valid dates, HTTPS source URLs, and related IDs; language selector targets exist. Completeness checks are structural, not an editorial verdict.
+- Inventory/schema checks: only the seven allowed locales; coverage exactly matches the approved inventory; stable unique slugs; nonempty bodies/descriptions; valid dates, HTTPS source URLs, and related IDs; language selector targets exist. Completeness checks are structural, not an editorial verdict.
 - `npm run lint`, `npx tsc --noEmit`, and `npm run build`, and `node scripts/check-blog.mjs` for content and SEO fixtures. A pre-existing failure is reported with scope; never label an unrun or failed stage passed.
 - Default build with `BLOG_INDEXING_ENABLED` absent/false: editorial previews are `noindex`, sitemap empty, and robots permits crawling so crawlers can see `noindex`. Draft routes are intentionally exposed in this local review mode. Noindex is not confidentiality or access control; do not deploy this preview publicly.
 - Use `node scripts/check-blog.mjs` in-memory published fixtures to test release mechanics without changing real draft flags. In an isolated local verification build only, set `BLOG_INDEXING_ENABLED=true` and rebuild to verify real drafts are excluded from routes, navigation, alternatives and sitemap; then restore the default preview build. Run `BLOG_INDEXING_ENABLED=true node scripts/check-blog.mjs --release` only after the content reviewer approves the complete current records. It checks the exact approved inventory, not three pages in every language. Keep real flags false until editorial approval; passing this gate establishes only local release eligibility, never deployment authority. Later, before an authorized release, this check and the release build must pass and the prospective canonical URLs and sitemap must be inspected. Changing an environment variable without rebuilding does not update generated metadata. This test does not authorize production enablement.

+ 13 - 12
src/components/Navbar.tsx

@@ -2,7 +2,7 @@
 
 import Link from 'next/link';
 import { usePathname } from 'next/navigation';
-import { useEffect, useState } from 'react';
+import { useEffect, useState, type ReactNode } from 'react';
 import { 
   Plane,
   BookOpen,
@@ -19,9 +19,10 @@ import { isAdmin, logout } from '@/lib/auth';
 import LanguageSwitcher from '@/components/common/LanguageSwitcher';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 
-export default function Navbar({ showBlog = false, blogHref = '/blogs', navigationLanguageOnly = false }: { showBlog?: boolean; blogHref?: string; navigationLanguageOnly?: boolean }) {
+export default function Navbar({ showBlog = false, blogHref = '/blogs', navigationLanguageOnly = false, labels, languageControl }: { showBlog?: boolean; blogHref?: string; navigationLanguageOnly?: boolean; labels?: Record<string, string>; languageControl?: ReactNode }) {
   const pathname = usePathname();
-  const { t } = useLanguage();
+  const { t: appTranslate } = useLanguage();
+  const t = (key: string) => labels?.[key] ?? appTranslate(key);
   
   const [isLogged, setIsLogged] = useState(false);
   const [showAdmin, setShowAdmin] = useState(false);
@@ -67,7 +68,7 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
           {/* Logo 铭牌 */}
           <Link
             href="/"
-            aria-label="STRATA home"
+            aria-label={labels?.home ?? 'STRATA home'}
             className="flex items-center gap-2 cursor-pointer group"
           >
             <div className="w-8 h-8 bg-amber-300 border-2 border-black flex items-center justify-center text-black shadow-[2px_2px_0px_#000] group-hover:bg-amber-400 transition">
@@ -84,7 +85,7 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
           </Link>
 
           {/* Desktop Nav 菜单 */}
-          <div className="hidden md:flex items-center space-x-2">
+          <div className={`${labels ? 'hidden xl:flex' : 'hidden md:flex'} items-center space-x-2`}>
             {showBlog && <a href={blogHref} aria-current={isBlogActive ? 'page' : undefined} className={`px-3 py-1.5 border-2 text-xs font-bold uppercase flex items-center gap-1.5 ${isBlogActive ? 'bg-black text-white border-black shadow-[2px_2px_0px_#000]' : 'border-transparent hover:border-black'}`}>
               <BookOpen size={14} />
               <span>{t('nav.blogs')}</span>
@@ -115,8 +116,8 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
           </div>
 
           {/* Desktop Actions */}
-          <div className="hidden md:flex items-center gap-3">
-            <LanguageSwitcher title={languageTitle} />
+          <div className={`${labels ? 'hidden xl:flex' : 'hidden md:flex'} items-center gap-3`}>
+            {languageControl ?? <LanguageSwitcher title={languageTitle} />}
 
             {isLogged ? (
               <div className="flex items-center gap-2.5">
@@ -161,12 +162,12 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
           </div>
 
           {/* Mobile Menu Button */}
-          <div className="flex md:hidden items-center gap-2">
-            <LanguageSwitcher title={languageTitle} />
+          <div className={`${labels ? 'flex xl:hidden' : 'flex md:hidden'} items-center gap-2`}>
+            {languageControl ?? <LanguageSwitcher title={languageTitle} />}
             <button
               onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)}
               className="p-1.5 bg-white border-2 border-black text-black shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none transition"
-              aria-label="Toggle Menu"
+              aria-label={labels?.menu ?? 'Toggle Menu'}
               aria-expanded={isMobileMenuOpen}
               aria-controls="site-mobile-menu"
             >
@@ -180,11 +181,11 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
       {isMobileMenuOpen && (
         <>
           <div 
-            className="fixed inset-0 top-16 bg-black/60 z-40 md:hidden backdrop-grayscale"
+            className={`fixed inset-0 top-16 bg-black/60 z-40 ${labels ? 'xl:hidden' : 'md:hidden'} backdrop-grayscale`}
             onClick={() => setIsMobileMenuOpen(false)}
           />
 
-          <div id="site-mobile-menu" className="md:hidden bg-white border-b-2 border-black absolute w-full left-0 z-50 shadow-[0_8px_0px_#000] p-4 space-y-3 font-mono">
+          <div id="site-mobile-menu" className={`${labels ? 'xl:hidden' : 'md:hidden'} bg-white border-b-2 border-black absolute w-full left-0 z-50 shadow-[0_8px_0px_#000] p-4 space-y-3 font-mono`}>
             <div className="space-y-1.5 border-b-2 border-dashed border-neutral-300 pb-3">
               {showBlog && <a href={blogHref} onClick={handleLinkClick} aria-current={isBlogActive ? 'page' : undefined} className={`flex items-center gap-2 border-2 border-black px-3 py-2 text-sm font-bold ${isBlogActive ? 'bg-amber-300 text-black' : ''}`}>
                 <BookOpen size={14} /> {t('nav.blogs')}

+ 19 - 10
src/components/blog/BlogNavbar.tsx

@@ -1,18 +1,27 @@
 'use client';
 
+import { usePathname } from 'next/navigation';
 import Navbar from '@/components/Navbar';
-import { LanguageProvider, useLanguage } from '@/lib/i18n/LanguageContext';
+import { LanguageProvider } from '@/lib/i18n/LanguageContext';
+import type { BlogLocale } from '@/lib/blog/types';
+import { copy, navigationCopy } from '@/lib/blog/translations';
 
-function NavigationFrame({ blogHref }: { blogHref: string }) {
-  const { lang } = useLanguage();
-  // Navigation language is scoped here; the article's server-selected html lang never changes.
-  return <div className="sticky top-0 z-50" lang={lang === 'zh' ? 'zh-CN' : 'en'} data-blog-navigation>
-    <Navbar showBlog blogHref={blogHref} navigationLanguageOnly />
-  </div>;
-}
+type LocaleLink = { locale: BlogLocale; href: string };
+type Props = { locale: BlogLocale; indexes: LocaleLink[]; articles: (LocaleLink & { id: string })[] };
 
-export default function BlogNavbar({ blogHref }: { blogHref: string }) {
+export default function BlogNavbar({ locale, indexes, articles }: Props) {
+  const pathname = usePathname();
+  const article = articles.find(a => a.href === pathname);
+  const options = article ? articles.filter(a => a.id === article.id) : indexes;
+  const currentHref = article?.href ?? indexes.find(a => a.locale === locale)?.href;
+  const languageControl = <select aria-label={copy[locale].language} value={currentHref}
+    className="w-20 sm:w-auto max-w-[8rem] min-w-0 bg-white text-black border-2 border-black px-2 py-1.5 text-xs font-bold shadow-[2px_2px_0px_#000]"
+    onChange={event => { window.location.assign(event.target.value); }}>
+    {options.map(option => <option key={option.locale} value={option.href} lang={option.locale}>{copy[option.locale].name}</option>)}
+  </select>;
   return <LanguageProvider initialLang="en" detectPreference={false} updateDocumentLanguage={false}>
-    <NavigationFrame blogHref={blogHref} />
+    <div className="sticky top-0 z-50" lang={locale} data-blog-navigation>
+      <Navbar showBlog blogHref={indexes.find(a => a.locale === locale)?.href} labels={navigationCopy[locale]} languageControl={languageControl} />
+    </div>
   </LanguageProvider>;
 }

+ 2 - 2
src/components/blog/BlogShell.tsx

@@ -1,7 +1,7 @@
 import type { ReactNode } from 'react';
 import { Plane } from 'lucide-react';
 import type { BlogLocale } from '@/lib/blog/types';
-import { blogPath, indexingEnabled } from '@/lib/blog/data';
+import { blogPath, indexingEnabled, visibleArticles, visibleLocales, articlePath } from '@/lib/blog/data';
 import { copy } from '@/lib/blog/translations';
 import BlogNavbar from './BlogNavbar';
 
@@ -16,7 +16,7 @@ export function BlogShell({ locale, children }: { locale: BlogLocale; children:
   const t = copy[locale];
   return <>
     <a className="blog-skip" href="#blog-main">{t.guides}</a>
-    <BlogNavbar blogHref={blogPath(locale)} />
+    <BlogNavbar locale={locale} indexes={visibleLocales().map(l => ({ locale: l, href: blogPath(l) }))} articles={visibleArticles().map(a => ({ id: a.id, locale: a.locale, href: articlePath(a) }))} />
     {!indexingEnabled && <p className="blog-preview" role="status">{t.preview}</p>}
     <main id="blog-main" className="blog-main" tabIndex={-1}>{children}</main>
     <footer className="blog-footer"><div className="blog-footer-inner">

+ 2 - 2
src/components/blog/BlogViews.tsx

@@ -8,7 +8,7 @@ import { copy } from '@/lib/blog/translations';
 export function BlogIndex({ locale }: { locale: BlogLocale }) {
   const t = copy[locale];
   return <>
-    <section className="blog-hero"><p className="blog-eyebrow">IRELAND → EUROPE</p><h1>{t.title}</h1><p>{t.description}</p></section>
+    <section className="blog-hero"><p className="blog-eyebrow">{t.region}</p><h1>{t.title}</h1><p>{t.description}</p></section>
     <div className="blog-grid">{visibleArticles(locale).map((article, index) => <article key={article.id} className="blog-card">
       <span className="blog-card-number">0{index + 1}</span><h2><a href={articlePath(article)}>{article.title}</a></h2><p>{article.description}</p><a className="blog-read" href={articlePath(article)}>{t.read} <span aria-hidden="true">↗</span></a>
     </article>)}</div>
@@ -24,7 +24,7 @@ export function BlogArticleView({ article }: { article: BlogArticle }) {
   return <>
     <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: schema }} />
     <nav className="blog-breadcrumb" aria-label={t.guides}><a href={blogPath(article.locale)}>{t.guides}</a><span aria-hidden="true"> / </span><span>{article.title}</span></nav>
-    <article className="blog-article"><header className="blog-article-header"><p className="blog-eyebrow">IRELAND → {article.destinationLabel}</p><h1>{article.title}</h1><p className="blog-lede">{article.description}</p><p className="blog-reviewed">{t.reviewed}: <time dateTime={article.reviewedAt}>{new Intl.DateTimeFormat(article.locale, { dateStyle: 'long', timeZone: 'UTC' }).format(new Date(`${article.reviewedAt}T00:00:00Z`))}</time></p></header>
+    <article className="blog-article"><header className="blog-article-header"><p className="blog-eyebrow">{t.ireland} → {article.destinationLabel}</p><h1>{article.title}</h1><p className="blog-lede">{article.description}</p><p className="blog-reviewed">{t.reviewed}: <time dateTime={article.reviewedAt}>{new Intl.DateTimeFormat(article.locale, { dateStyle: 'long', timeZone: 'UTC' }).format(new Date(`${article.reviewedAt}T00:00:00Z`))}</time></p></header>
       <div className="blog-prose"><ReactMarkdown remarkPlugins={[remarkGfm]} skipHtml>{article.body}</ReactMarkdown></div>
       <section className="blog-sources"><h2>{t.sources}</h2><ul>{article.sources.map(source => <li key={source.url}><a href={source.url} rel="noopener noreferrer">{source.title}</a></li>)}</ul></section>
     </article>

+ 90 - 0
src/content/blog/approved-inventory.json

@@ -13,5 +13,95 @@
     "id": "denmark-appointment-booking",
     "locale": "en",
     "slug": "denmark-visa-appointments-dublin"
+  },
+  {
+    "id": "netherlands-appointment-booking",
+    "locale": "de",
+    "slug": "netherlands-visa-appointments-dublin"
+  },
+  {
+    "id": "greece-appointment-booking",
+    "locale": "de",
+    "slug": "greece-visa-appointments-dublin"
+  },
+  {
+    "id": "denmark-appointment-booking",
+    "locale": "de",
+    "slug": "denmark-visa-appointments-dublin"
+  },
+  {
+    "id": "netherlands-appointment-booking",
+    "locale": "fr",
+    "slug": "netherlands-visa-appointments-dublin"
+  },
+  {
+    "id": "greece-appointment-booking",
+    "locale": "fr",
+    "slug": "greece-visa-appointments-dublin"
+  },
+  {
+    "id": "denmark-appointment-booking",
+    "locale": "fr",
+    "slug": "denmark-visa-appointments-dublin"
+  },
+  {
+    "id": "netherlands-appointment-booking",
+    "locale": "es",
+    "slug": "netherlands-visa-appointments-dublin"
+  },
+  {
+    "id": "greece-appointment-booking",
+    "locale": "es",
+    "slug": "greece-visa-appointments-dublin"
+  },
+  {
+    "id": "denmark-appointment-booking",
+    "locale": "es",
+    "slug": "denmark-visa-appointments-dublin"
+  },
+  {
+    "id": "netherlands-appointment-booking",
+    "locale": "it",
+    "slug": "netherlands-visa-appointments-dublin"
+  },
+  {
+    "id": "greece-appointment-booking",
+    "locale": "it",
+    "slug": "greece-visa-appointments-dublin"
+  },
+  {
+    "id": "denmark-appointment-booking",
+    "locale": "it",
+    "slug": "denmark-visa-appointments-dublin"
+  },
+  {
+    "id": "netherlands-appointment-booking",
+    "locale": "pt",
+    "slug": "netherlands-visa-appointments-dublin"
+  },
+  {
+    "id": "greece-appointment-booking",
+    "locale": "pt",
+    "slug": "greece-visa-appointments-dublin"
+  },
+  {
+    "id": "denmark-appointment-booking",
+    "locale": "pt",
+    "slug": "denmark-visa-appointments-dublin"
+  },
+  {
+    "id": "netherlands-appointment-booking",
+    "locale": "zh",
+    "slug": "netherlands-visa-appointments-dublin"
+  },
+  {
+    "id": "greece-appointment-booking",
+    "locale": "zh",
+    "slug": "greece-visa-appointments-dublin"
+  },
+  {
+    "id": "denmark-appointment-booking",
+    "locale": "zh",
+    "slug": "denmark-visa-appointments-dublin"
   }
 ]

ファイルの差分が大きいため隠しています
+ 13 - 0
src/content/blog/articles.json


+ 4 - 2
src/lib/blog/metadata.ts

@@ -3,6 +3,8 @@ import type { BlogArticle, BlogLocale } from './types';
 import { absoluteUrl, articlePath, availableLocales, blogPath, indexingEnabled, translations } from './data';
 import { copy } from './translations';
 
+const openGraphLocale: Record<BlogLocale, string> = { en: 'en_IE', de: 'de_DE', fr: 'fr_FR', es: 'es_ES', it: 'it_IT', pt: 'pt_PT', zh: 'zh_CN' };
+
 export function blogMetadata(locale: BlogLocale, article?: BlogArticle): Metadata {
   const title = article?.title ?? copy[locale].title;
   const description = article?.description ?? copy[locale].description;
@@ -16,8 +18,8 @@ export function blogMetadata(locale: BlogLocale, article?: BlogArticle): Metadat
     metadataBase: new URL(absoluteUrl('/')), title: `${title} | STRATA`, description,
     robots: { index: indexingEnabled && (!article || article.published), follow: true },
     alternates: { canonical: absoluteUrl(path), languages },
-    openGraph: { title, description, url: absoluteUrl(path), siteName: 'STRATA', type: article ? 'article' : 'website', locale,
-      alternateLocale: variants.map(([l]) => l).filter(l => l !== locale),
+    openGraph: { title, description, url: absoluteUrl(path), siteName: 'STRATA', type: article ? 'article' : 'website', locale: openGraphLocale[locale],
+      alternateLocale: variants.map(([l]) => l).filter(l => l !== locale).map(l => openGraphLocale[l as BlogLocale]),
       ...(article ? { modifiedTime: article.reviewedAt } : {}) },
     twitter: { card: 'summary', title, description },
   };

+ 19 - 7
src/lib/blog/translations.ts

@@ -1,10 +1,22 @@
 import type { BlogLocale } from './types';
-type Copy = { name: string; title: string; description: string; guides: string; home: string; services: string; terms: string; refunds: string; reviewed: string; sources: string; related: string; independent: string; disclaimer: string; serviceNote: string; read: string; language: string; preview: string };
+type Copy = { region: string; ireland: string; name: string; title: string; description: string; guides: string; home: string; services: string; terms: string; refunds: string; reviewed: string; sources: string; related: string; independent: string; disclaimer: string; serviceNote: string; read: string; language: string; preview: string };
 export const copy: Record<BlogLocale, Copy> = {
-  en: { terms:'Service terms', refunds:'Refund policy', name:'English', title:'Visa appointment guides for residents of Ireland', description:'How to book Netherlands, Greece and Denmark tourist visa appointments from Ireland, with official routes, availability checks and preparation steps.', guides:'Visa guides', home:'Home', services:'Explore services', reviewed:'Last checked', sources:'Official sources', related:'Related guides', independent:'Independent guidance', disclaimer:'STRATA is an independent third-party service, not an embassy, consulate or government agency. We cannot guarantee an appointment or visa.', serviceNote:'Our optional automatic-booking service is separate from the official application process. Check the destination, visa category, service terms and refund policy before paying.', read:'Read guide', language:'Choose language', preview:'Review preview: search indexing is disabled.' },
-  de: { terms:'Leistungsbedingungen', refunds:'Erstattungsbedingungen', name:'Deutsch', title:'Visumtermine: Leitfäden für Personen mit Wohnsitz in Irland', description:'Praktische Leitfäden zu Visumterminen, offiziellen Buchungswegen und Reisevorbereitungen für Personen mit Wohnsitz in Irland.', guides:'Visum-Leitfäden', home:'Startseite', services:'Dienstleistungen ansehen', reviewed:'Zuletzt geprüft', sources:'Offizielle Quellen', related:'Weitere Leitfäden', independent:'Unabhängige Orientierung', disclaimer:'STRATA ist ein unabhängiger Drittanbieter und keine Botschaft, kein Konsulat und keine Regierungsbehörde. Wir garantieren weder einen Termin noch ein Visum.', serviceNote:'Unsere Dienstleistungen sind vom offiziellen Terminverfahren getrennt. Lesen Sie vor einer Zahlung die Leistungsbeschreibung und Bedingungen.', read:'Leitfaden lesen', language:'Sprache wählen', preview:'Vorschau zur Prüfung: Suchmaschinenindexierung ist deaktiviert.' },
-  fr: { terms:'Conditions du service', refunds:'Politique de remboursement', name:'Français', title:'Guides des rendez-vous de visa pour les résidents en Irlande', description:'Des guides pratiques sur les rendez-vous de visa, les démarches officielles et les préparatifs pour les résidents en Irlande.', guides:'Guides de visa', home:'Accueil', services:'Voir les services', reviewed:'Dernière vérification', sources:'Sources officielles', related:'Guides associés', independent:'Informations indépendantes', disclaimer:'STRATA est un prestataire tiers indépendant, et non une ambassade, un consulat ou un organisme public. Nous ne garantissons ni rendez-vous ni visa.', serviceNote:'Nos services sont distincts de la procédure officielle de prise de rendez-vous. Consultez leur description et leurs conditions avant tout paiement.', read:'Lire le guide', language:'Choisir la langue', preview:'Aperçu pour relecture : indexation désactivée.' },
-  es: { terms:'Condiciones del servicio', refunds:'Política de reembolso', name:'Español', title:'Guías de citas para visados para residentes en Irlanda', description:'Guías prácticas sobre citas para visados, vías oficiales de reserva y preparación del viaje para residentes en Irlanda.', guides:'Guías de visados', home:'Inicio', services:'Ver servicios', reviewed:'Última revisión', sources:'Fuentes oficiales', related:'Guías relacionadas', independent:'Orientación independiente', disclaimer:'STRATA es un proveedor independiente, no una embajada, un consulado ni una agencia gubernamental. No garantizamos una cita ni un visado.', serviceNote:'Nuestros servicios son independientes del proceso oficial de citas. Lee los detalles y las condiciones antes de pagar.', read:'Leer guía', language:'Elegir idioma', preview:'Vista previa para revisión: indexación desactivada.' },
-  it: { terms:'Condizioni del servizio', refunds:'Politica di rimborso', name:'Italiano', title:'Guide agli appuntamenti per i visti per chi risiede in Irlanda', description:'Guide pratiche agli appuntamenti per i visti, alle procedure ufficiali e ai preparativi per chi risiede in Irlanda.', guides:'Guide ai visti', home:'Home', services:'Esplora i servizi', reviewed:'Ultima verifica', sources:'Fonti ufficiali', related:'Guide correlate', independent:'Guida indipendente', disclaimer:'STRATA è un fornitore terzo indipendente, non un’ambasciata, un consolato o un ente pubblico. Non garantiamo un appuntamento né un visto.', serviceNote:'I nostri servizi sono separati dalla procedura ufficiale di prenotazione. Leggi i dettagli e le condizioni prima di pagare.', read:'Leggi la guida', language:'Scegli la lingua', preview:'Anteprima per revisione: indicizzazione disattivata.' },
-  pt: { terms:'Condições do serviço', refunds:'Política de reembolso', name:'Português', title:'Guias de marcações de vistos para residentes na Irlanda', description:'Guias práticos sobre marcações de vistos, procedimentos oficiais e preparação da viagem para residentes na Irlanda.', guides:'Guias de vistos', home:'Início', services:'Ver serviços', reviewed:'Última verificação', sources:'Fontes oficiais', related:'Guias relacionados', independent:'Orientação independente', disclaimer:'A STRATA é um prestador independente, não uma embaixada, consulado ou entidade governamental. Não garantimos uma marcação nem um visto.', serviceNote:'Os nossos serviços são separados do processo oficial de marcação. Leia os detalhes e as condições antes de pagar.', read:'Ler guia', language:'Escolher idioma', preview:'Pré-visualização para revisão: indexação desativada.' },
+  en: { region:'Ireland → Europe', ireland:'Ireland', terms:'Service terms', refunds:'Refund policy', name:'English', title:'Visa appointment guides for residents of Ireland', description:'How to book Netherlands, Greece and Denmark tourist visa appointments from Ireland, with official routes, availability checks and preparation steps.', guides:'Visa guides', home:'Home', services:'Explore services', reviewed:'Last checked', sources:'Official sources', related:'Related guides', independent:'Independent guidance', disclaimer:'STRATA is an independent third-party service, not an embassy, consulate or government agency. We cannot guarantee an appointment or visa.', serviceNote:'Our optional automatic-booking service is separate from the official application process. Check the destination, visa category, service terms and refund policy before paying.', read:'Read guide', language:'Choose language', preview:'Review preview: search indexing is disabled.' },
+  de: { region:'Irland → Europa', ireland:'Irland', terms:'Leistungsbedingungen', refunds:'Erstattungsbedingungen', name:'Deutsch', title:'Visumtermine: Leitfäden für Personen mit Wohnsitz in Irland', description:'So buchen Personen mit Wohnsitz in Irland Termine für Touristenvisa für die Niederlande, Griechenland und Dänemark: offizielle Buchungswege, Verfügbarkeit und Vorbereitung.', guides:'Visum-Leitfäden', home:'Startseite', services:'Dienstleistungen ansehen', reviewed:'Zuletzt geprüft', sources:'Offizielle Quellen', related:'Weitere Leitfäden', independent:'Unabhängige Orientierung', disclaimer:'STRATA ist ein unabhängiger Drittanbieter und keine Botschaft, kein Konsulat und keine Regierungsbehörde. Wir garantieren weder einen Termin noch ein Visum.', serviceNote:'Unser optionaler automatischer Buchungsservice ist vom offiziellen Antragsverfahren getrennt. Prüfen Sie vor der Zahlung das Reiseziel, die Visumkategorie, die Leistungsbedingungen und die Erstattungsbedingungen.', read:'Leitfaden lesen', language:'Sprache wählen', preview:'Vorschau zur Prüfung: Suchmaschinenindexierung ist deaktiviert.' },
+  fr: { region:'Irlande → Europe', ireland:'Irlande', terms:'Conditions du service', refunds:'Politique de remboursement', name:'Français', title:'Guides pour prendre rendez-vous pour un visa depuis l’Irlande', description:'Comment prendre rendez-vous pour un visa touristique pour les Pays-Bas, la Grèce ou le Danemark lorsque vous résidez en Irlande : démarches officielles, disponibilités et préparation.', guides:'Guides de visa', home:'Accueil', services:'Voir les services', reviewed:'Dernière vérification', sources:'Sources officielles', related:'Guides associés', independent:'Informations indépendantes', disclaimer:'STRATA est un prestataire tiers indépendant, et non une ambassade, un consulat ou un organisme public. Nous ne garantissons ni rendez-vous ni visa.', serviceNote:'Notre service facultatif de réservation automatique est distinct de la procédure officielle de demande. Vérifiez la destination, la catégorie de visa, les conditions du service et la politique de remboursement avant de payer.', read:'Lire le guide', language:'Choisir la langue', preview:'Aperçu pour relecture : indexation désactivée.' },
+  es: { region:'Irlanda → Europa', ireland:'Irlanda', terms:'Condiciones del servicio', refunds:'Política de reembolso', name:'Español', title:'Guías para solicitar cita de visado desde Irlanda', description:'Cómo reservar citas para visados turísticos de los Países Bajos, Grecia y Dinamarca si resides en Irlanda: canales oficiales, disponibilidad y preparación.', guides:'Guías de visados', home:'Inicio', services:'Ver servicios', reviewed:'Última revisión', sources:'Fuentes oficiales', related:'Guías relacionadas', independent:'Orientación independiente', disclaimer:'STRATA es un proveedor independiente, no una embajada, un consulado ni una agencia gubernamental. No garantizamos una cita ni un visado.', serviceNote:'Nuestro servicio opcional de reserva automática es independiente del proceso oficial de solicitud. Comprueba el destino, la categoría de visado, las condiciones del servicio y la política de reembolso antes de pagar.', read:'Leer guía', language:'Elegir idioma', preview:'Vista previa para revisión: indexación desactivada.' },
+  it: { region:'Irlanda → Europa', ireland:'Irlanda', terms:'Condizioni del servizio', refunds:'Politica di rimborso', name:'Italiano', title:'Guide agli appuntamenti per i visti per chi risiede in Irlanda', description:'Come prenotare appuntamenti per visti turistici per Paesi Bassi, Grecia e Danimarca se risiedi in Irlanda: canali ufficiali, disponibilità e preparazione.', guides:'Guide ai visti', home:'Home', services:'Esplora i servizi', reviewed:'Ultima verifica', sources:'Fonti ufficiali', related:'Guide correlate', independent:'Guida indipendente', disclaimer:'STRATA è un fornitore terzo indipendente, non un’ambasciata, un consolato o un ente pubblico. Non garantiamo un appuntamento né un visto.', serviceNote:'Il nostro servizio facoltativo di prenotazione automatica è separato dalla procedura ufficiale di domanda. Prima di pagare, verifica la destinazione, la categoria di visto, le condizioni del servizio e la politica di rimborso.', read:'Leggi la guida', language:'Scegli la lingua', preview:'Anteprima per revisione: indicizzazione disattivata.' },
+  pt: { region:'Irlanda → Europa', ireland:'Irlanda', terms:'Condições do serviço', refunds:'Política de reembolso', name:'Português', title:'Guias de marcações para pedidos de visto para residentes na Irlanda', description:'Como marcar atendimentos para pedidos de visto de turismo para os Países Baixos, a Grécia e a Dinamarca, para residentes na Irlanda: canais oficiais, disponibilidade e preparação.', guides:'Guias de vistos', home:'Início', services:'Ver serviços', reviewed:'Última verificação', sources:'Fontes oficiais', related:'Guias relacionados', independent:'Orientação independente', disclaimer:'A STRATA é um prestador independente, não uma embaixada, consulado ou entidade governamental. Não garantimos uma marcação nem um visto.', serviceNote:'O nosso serviço opcional de marcação automática é separado do processo oficial de pedido. Antes de pagar, confirme o destino, a categoria de visto, as condições do serviço e a política de reembolso.', read:'Ler guia', language:'Escolher idioma', preview:'Pré-visualização para revisão: indexação desativada.' },
+  zh: { region:'爱尔兰 → 欧洲', ireland:'爱尔兰', terms:'服务条款', refunds:'退款政策', name:'中文', title:'爱尔兰居民签证预约指南', description:'为居住在爱尔兰的申请人介绍荷兰、希腊和丹麦旅游签证的官方预约渠道、名额查询和申请准备步骤。', guides:'签证指南', home:'首页', services:'查看服务', reviewed:'最近核实', sources:'官方来源', related:'相关指南', independent:'独立第三方指南', disclaimer:'STRATA 是独立第三方服务商,并非大使馆、领事馆或政府机构。我们无法保证获得预约或签证。', serviceNote:'我们的可选自动预约服务独立于官方申请流程。付款前请核对目的地、签证类别、服务条款和退款政策。', read:'阅读指南', language:'选择语言', preview:'审核预览:搜索引擎索引已关闭。' },
+};
+
+// Blog-only labels; the existing application's two-language dictionary stays unchanged.
+export const navigationCopy: Record<BlogLocale, Record<string, string>> = {
+  en: { 'nav.blogs':'Visa guides', 'nav.services':'Services', 'nav.slots':'Slot Check', 'nav.login':'Login / Sign up', 'nav.admin':'Admin', 'nav.dashboard':'Dashboard', 'nav.logout':'Logout', home:'STRATA home', menu:'Toggle menu' },
+  de: { 'nav.blogs':'Visum-Leitfäden', 'nav.services':'Leistungen', 'nav.slots':'Termine prüfen', 'nav.login':'Anmelden / Registrieren', 'nav.admin':'Verwaltung', 'nav.dashboard':'Übersicht', 'nav.logout':'Abmelden', home:'STRATA Startseite', menu:'Menü öffnen oder schließen' },
+  fr: { 'nav.blogs':'Guides de visa', 'nav.services':'Services', 'nav.slots':'Créneaux', 'nav.login':'Connexion / Inscription', 'nav.admin':'Administration', 'nav.dashboard':'Tableau de bord', 'nav.logout':'Déconnexion', home:'Accueil STRATA', menu:'Ouvrir ou fermer le menu' },
+  es: { 'nav.blogs':'Guías de visados', 'nav.services':'Servicios', 'nav.slots':'Consultar citas', 'nav.login':'Acceder / Registrarse', 'nav.admin':'Administración', 'nav.dashboard':'Panel', 'nav.logout':'Cerrar sesión', home:'Inicio de STRATA', menu:'Abrir o cerrar el menú' },
+  it: { 'nav.blogs':'Guide ai visti', 'nav.services':'Servizi', 'nav.slots':'Verifica disponibilità', 'nav.login':'Accedi / Registrati', 'nav.admin':'Amministrazione', 'nav.dashboard':'Pannello', 'nav.logout':'Esci', home:'Home STRATA', menu:'Apri o chiudi il menu' },
+  pt: { 'nav.blogs':'Guias de vistos', 'nav.services':'Serviços', 'nav.slots':'Consultar vagas', 'nav.login':'Entrar / Registar', 'nav.admin':'Administração', 'nav.dashboard':'Painel', 'nav.logout':'Terminar sessão', home:'Página inicial da STRATA', menu:'Abrir ou fechar o menu' },
+  zh: { 'nav.blogs':'签证指南', 'nav.services':'服务', 'nav.slots':'查询名额', 'nav.login':'登录 / 注册', 'nav.admin':'管理后台', 'nav.dashboard':'控制台', 'nav.logout':'退出登录', home:'STRATA 首页', menu:'打开或关闭菜单' },
 };

+ 1 - 1
src/lib/blog/types.ts

@@ -1,4 +1,4 @@
-export const locales = ['en', 'de', 'fr', 'es', 'it', 'pt'] as const;
+export const locales = ['en', 'de', 'fr', 'es', 'it', 'pt', 'zh'] as const;
 export type BlogLocale = (typeof locales)[number];
 export type BlogArticle = {
   id: string;

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません