diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index d932fa7..2a89d63 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -20,7 +20,7 @@ Every environment variable the application reads, and every setting managed in * ## Application and website -Dashboard: **General** (immediate), **Branding & SEO** (immediate), **Social profiles** (immediate), **Marketplace** (immediate). +Dashboard: **General** (immediate), **Branding & SEO** (immediate), **Languages & international SEO** (immediate), **Social profiles** (immediate), **Marketplace** (immediate). | Variable | Purpose | Required | Secret | Startup | Managed in dashboard | Change needs | | --- | --- | --- | --- | --- | --- | --- | @@ -107,7 +107,7 @@ Dashboard: **Stripe** (immediate, connection test), **PayPal** (immediate, conne ## Advertising -Dashboard: **Google AdSense** (immediate), **Adsterra** (immediate), **Ad placements** (immediate). +Dashboard: **Google AdSense** (immediate), **Adsterra** (immediate), **Ad content policy** (immediate), **Ad placements** (immediate). ## Analytics diff --git a/docs/international-expansion/advertising-audit.md b/docs/international-expansion/advertising-audit.md new file mode 100644 index 0000000..2fac7ae --- /dev/null +++ b/docs/international-expansion/advertising-audit.md @@ -0,0 +1,30 @@ +# Advertising audit + +## Placements on app pages +Before: up to three units, including a compact native unit directly inside a "Ready to try …?" box with a second visit button, and a unit after the reviews at the bottom of the page. +Now: at most **two** — `listing` between the app's details and the reviews (well below the single "Visit Official Website" button) and `desktop-sidebar` on screens ≥ 1280 px. Enforced three times: page markup, the manager's per-page maximum (setting capped at 2) and the browser guard. The `listingNative` toggle is kept for compatibility but unused. + +## Controls Webcenta enforces +| Control | Where | +|---|---| +| Ads only after advertising consent | `Ad` component | +| No ads on app pages in blocked categories (gambling, betting, adult, dating, crypto/forex/high-risk finance, weapons/drugs/tobacco/alcohol, political/religious) or rated 18+ | Settings → Ad content policy, `src/server/ads/content-policy.ts` | +| No ads for a country, or no AdSense / no Adsterra for a country | Admin → Country policies | +| No ads when the country is unknown (optional) | Ad content policy | +| One provider per slot: AdSense when approved, else Adsterra; never both | `resolvePlacement` | +| Sandboxed frames; banner and native formats only (no popunder, Smartlink, Social Bar) | `/ads/frame/` | +| Placement limits, spacing, phone/desktop switches | Settings → Ad placements | +| Report this ad → admin review | `/report-ad`, Admin → Ad reports & policy | + +The frame endpoint applies the same country rules, so opening a frame URL directly does not bypass them. + +## What depends on the providers (Webcenta cannot do it) +Webcenta cannot see the creative inside an ad frame (cross-origin, sandboxed) and cannot filter it. +- **Google AdSense**: Blocking controls → Content (sensitive and general categories) and Advertiser URLs. Apply every blocked category and the blocked-advertiser list there. +- **Adsterra**: category and advertiser filtering is handled by Adsterra (publisher dashboard options and account manager / support). Ask them to apply the categories in Ad content policy to webcenta.com and send the blocked-advertiser list. Webcenta does not claim that Adsterra filters every category. +- Record the date of each check in Ad content policy; the Ad reports page shows it as a checklist. + +Therefore no claim is made that advertising is fully controlled: Webcenta controls where ads appear and for whom; the providers control which ads are served. + +## Fast response +Admin → Ad reports & policy links to switching a placement off, turning Adsterra off and the country policies. Reports store page, placement, provider, reason, description and country code (no IP); they are deleted after 12 months. diff --git a/docs/international-expansion/checklist.md b/docs/international-expansion/checklist.md new file mode 100644 index 0000000..fcd6647 --- /dev/null +++ b/docs/international-expansion/checklist.md @@ -0,0 +1,53 @@ +# International expansion — checklist + +Status legend: ✅ done and tested · 🟡 done with documented limits · ⏳ needs the owner (account, credentials or a decision) · ❌ not done. + +## 1. Header, bottom navigation and PWA prompts +- ✅ Exactly one header, one bottom tab bar and one footer: they are rendered only by `src/app/(public)/layout.tsx` (verified by search and by `tests/e2e/international.spec.ts`, which counts them after every tab, after Back, and with `display-mode: standalone` emulated). +- ✅ Tab bar fixed to the viewport bottom, above the home indicator (`env(safe-area-inset-bottom)`), stable while scrolling (tested at 390 × 844 after scrolling 2,000 px). +- ✅ Install, update and push prompts and the cookie notice use one rule (`above-mobile-nav` in `globals.css`): on phones they sit above the tab bar plus the safe area; on larger screens at the bottom edge. Test: the install prompt's bottom edge is above the tab bar's top edge. +- ✅ Install prompt dismissible, choice remembered (`wc-install-dismissed`); not shown in installed mode. +- ✅ Home / Games / Apps / Search kept. +- 🟡 The uploaded screenshots mentioned in the request were not attached to the conversation, and webcenta.com cannot be reached from this build environment (the network proxy refuses it), so the investigation used the code and production builds run locally. See `responsive-audit.md` for the root causes found. + +## 2. Card navigation and detail page +- ✅ Store rows and featured cards are one link each; no nested links or buttons; keyboard reachable (tested: Enter on a focused row opens the app page). +- ✅ "View" pills and the "View" label on featured cards removed; section headings use a plain "See all" text link instead of a chevron. +- ✅ Exactly one "Visit Official Website" button on an app page (tested). +- ✅ The "Ready to try …?" box with its sponsored unit and second visit button removed. +- ✅ At most two ads on an app page (placement manager maximum lowered to 2; setting capped at 2): one between the app's details and the reviews, and the desktop sidebar unit. Tested: ≤ 2 loaded, the inline one > 300 px below the visit button. + +## 3. Advertising content and country restrictions +- ✅ Admin → Settings → Ad content policy: ten brand-safety categories (all blocked by default), behaviour when the country is unknown, blocked-advertiser register, dates when provider dashboards were last checked. +- ✅ Enforced by Webcenta: no ads on app pages in blocked categories or rated 18+; no ads / no provider for countries switched off in Country policies; optional "no ads when the country is unknown"; the ad frame endpoint applies the same rules. +- ✅ "Report this ad" link on every ad label → `/report-ad` → Admin → Ad reports & policy (resolve / dismiss, audit-logged). +- 🟡 The creative inside an ad frame is chosen by the provider and cannot be inspected or filtered by Webcenta. Category and advertiser blocking must be applied in the AdSense and Adsterra dashboards (checklist on the Ad reports page). See `advertising-audit.md`. +- ✅ AdSense first, Adsterra fallback, never both in one slot; same rules for both. + +## 4. Country detection +- ✅ Country from the configured CDN header only (`cf-ipcountry` by default); no GPS, no IP stored for this, unknown is never guessed. +- ✅ No country question at sign-up; optional region in account settings. +- ✅ Restrictions of detected and chosen country add up; choosing a country never removes a restriction (unit-tested, including age of majority). +- ✅ Admin → Country policies table (restricted / permitted categories, adult age, ads off, providers off, last reviewed, notes); removing a policy needs a fresh authenticator code. +- ✅ Privacy Policy explains country detection, language storage and ad reports (published as a new version on existing installs if the policy text was never edited). +- ⏳ Hostinger does not add a country header by itself. Until a CDN that sets one (for example Cloudflare's `CF-IPCountry`) is in front of webcenta.com, every visitor's country is **unknown**. An offline GeoIP database was considered; installing it was blocked in this session and needs the owner's approval (see `geo-compliance.md`). + +## 5. Languages +- ✅ 50 languages registered (P1 15, P2 25, P3 10 with Afrikaans as no. 50), valid BCP 47 codes, native names, four right-to-left languages. +- ✅ URLs: English unprefixed, others `/es/…`, `/pt-br/…`, `/zh-hans/…`; same routes; `/en/…` → 308; switched-off languages → 307 to English. +- ✅ Selector in the header, footer, account menu and profile settings; choice saved in a cookie and in the account; browser language only suggested. +- ✅ Locale-aware dates, numbers, plurals, collation and country names (`src/i18n/format.ts`, `Intl`). +- ✅ Real RTL: `dir="rtl"` on ``, logical spacing classes in the public UI (tested: Arabic at 360 and 1440 px, no horizontal scroll, mirrored header). +- 🟡 Coverage: 15 languages have every bundled key (211 keys: navigation, prompts, consent, store pages, metadata, top-level category names); 35 have none and show English. The 14 non-English translations were drafted by AI and **have not been reviewed by native speakers** (marked "Unreviewed" in the dashboard). Admin, developer portal, emails, legal texts and many account forms remain English. See `translation-audit.md`. +- ✅ Developer-written descriptions and reviews stay in their original language and are marked with `lang`. +- ✅ Admin → SEO & languages: languages, coverage %, missing keys, errors, source / review state, last update; `npm run i18n:check` and a unit test fail on markup, placeholder or plural errors. + +## 6–7. Multilingual SEO and admin +- ✅ hreflang (reciprocal, x-default, only indexed languages) and self-referencing canonicals; pages whose main text is not translated are indexed only in English. +- ✅ Multilingual sitemap with the same alternates. +- ✅ Translated titles and descriptions; per-language homepage title, description and keywords (validated); category names per language (admin overrides). +- ✅ hreflang validation, sitemap status and robots status in Admin → SEO & languages. +- ⏳ Search Console / Bing: submit `/sitemap.xml`; indexing can only be confirmed there. + +## 8–11. Performance, security, tests, deployment +- See `test-results.md` and `seo-audit.md`. Deployment status is in the final report. diff --git a/docs/international-expansion/geo-compliance.md b/docs/international-expansion/geo-compliance.md new file mode 100644 index 0000000..c580825 --- /dev/null +++ b/docs/international-expansion/geo-compliance.md @@ -0,0 +1,31 @@ +# Country detection and compliance + +## How the country is determined +1. The request header named in Settings → Security → Country header (default `cf-ipcountry`), set by a CDN or proxy from the visitor's IP address. +2. Only a valid two-letter code is accepted; `XX` (unknown) and `T1` (Tor) are treated as unknown. +3. Nothing else: no GPS or browser location, no third-party lookup, no guessing. If the header is missing the country is **unknown**. + +Webcenta does not store the IP address for this purpose. The country code is used for the request only, except in ad reports (kept 12 months). + +### Current production limitation +Hostinger's web hosting does not add a country header by itself. Until webcenta.com is behind a CDN that sets one (Cloudflare `CF-IPCountry`, or any CDN header configured in Settings → Security), every visitor is "unknown". Effects with the default settings: listings and categories restricted to certain countries are hidden ("deny"), country policies cannot apply, and ads use the brand-safe default. +Options for the owner: +- Put a CDN in front of the site that sets a trusted country header (DNS change: owner's decision; not done here). +- Approve adding an offline country database (for example DB-IP Lite country, CC BY 4.0, ~16 MB). Installing it was attempted in this session and blocked by the session's permission policy, so it was not added. + +A header is only trustworthy if the CDN overwrites it. Without a CDN, a visitor could send the header themselves; this can only change which country's restrictions apply (and VPNs already allow the same), which is why restrictions of the chosen and detected country add up and never relax a global rule. + +## Uses +| Use | Country used | +|---|---| +| Hidden categories / listings, minimum adult age (Country policies) | detected AND chosen (stricter wins) | +| Listing geo-restrictions | detected, else chosen | +| Ads off / provider off | detected AND chosen | +| Regional display (currency label, country names) | chosen, else detected | +| Language | never — language is independent of country | + +## Country policy table (Admin → Country policies) +Columns: country, restricted categories (slugs, validated), permitted categories (record only — never lifts a global block), minimum adult age (18–25), ads off, providers off, last reviewed, notes. Changes are audit-logged; deleting a policy requires a fresh authenticator code. No policies are pre-filled: which categories are lawful in which country is a legal question for the owner. + +## Sign-up and profile +Registration does not ask for a country. Account → Profile → Region is optional and explains that restrictions where the visitor is still apply. diff --git a/docs/international-expansion/responsive-audit.md b/docs/international-expansion/responsive-audit.md new file mode 100644 index 0000000..a030625 --- /dev/null +++ b/docs/international-expansion/responsive-audit.md @@ -0,0 +1,12 @@ +# Responsive and PWA audit + +## Duplicate header / bottom navigation — findings +- The header, tab bar, footer, PWA manager and cookie notice are rendered in exactly one place (`src/app/(public)/layout.tsx`). Error pages that draw their own header are only used outside that layout. No route renders the layout twice. +- Automated check (`international.spec.ts`): exactly one header and one tab bar after each tab, after Back, after scrolling, in a normal tab and with `display-mode: standalone` emulated (installed app). +- Real overlap found: the install, update and push prompts were fixed at `bottom: 7rem` with no safe-area term, and the cookie notice used its own offset. On iPhones with a home indicator (34 px) and in installed mode the prompt sat on or against the tab bar, which can look like a second bar. Fix: one shared rule (`above-mobile-nav`) = tab bar bottom offset (`max(0.75rem, safe-area)`) + tab bar height + gap; tested at 375 × 812. +- Real bug found while testing: fixed overlays inside the header (which uses `backdrop-filter`) are positioned relative to the header, not the screen. The new language dialog is rendered in a portal (as the account menu already was). +- Long screenshots stitched from a scrolled page repeat sticky and fixed elements. That is a capture artefact, not a second element; the tests above count the elements in the DOM. +- Not reproducible here: the uploaded screenshots were not attached, and webcenta.com is not reachable from this environment. If a duplicate is still visible on a device, a screen recording with the device, browser and whether the app is installed would identify it. + +## Viewports +Screenshots for 320 × 568, 360 × 800, 375 × 812, 390 × 844, 430 × 932, 768 × 1024, 1024 × 768, 1280 × 800, 1440 × 900 and 1920 × 1080 are produced by `tests/e2e/responsive-audit.spec.ts` (`RESPONSIVE_AUDIT=1`) and `international.spec.ts` (`INTL_SHOTS=1`, Arabic RTL, install prompt, admin pages). Results are summarised in `test-results.md`. diff --git a/docs/international-expansion/screenshots/admin-countries.jpg b/docs/international-expansion/screenshots/admin-countries.jpg new file mode 100644 index 0000000..0c594c5 Binary files /dev/null and b/docs/international-expansion/screenshots/admin-countries.jpg differ diff --git a/docs/international-expansion/screenshots/admin-languages.jpg b/docs/international-expansion/screenshots/admin-languages.jpg new file mode 100644 index 0000000..edab688 Binary files /dev/null and b/docs/international-expansion/screenshots/admin-languages.jpg differ diff --git a/docs/international-expansion/screenshots/install-prompt-375.jpg b/docs/international-expansion/screenshots/install-prompt-375.jpg new file mode 100644 index 0000000..90d8301 Binary files /dev/null and b/docs/international-expansion/screenshots/install-prompt-375.jpg differ diff --git a/docs/international-expansion/screenshots/responsive-audit.json b/docs/international-expansion/screenshots/responsive-audit.json new file mode 100644 index 0000000..5d120ae --- /dev/null +++ b/docs/international-expansion/screenshots/responsive-audit.json @@ -0,0 +1,6 @@ +{ + "generatedAt": "2026-11-20T13:25:04.307Z", + "engine": "Chromium (Playwright device emulation)", + "checks": 230, + "problems": [] +} diff --git a/docs/international-expansion/screenshots/responsive/account-1440x900.jpg b/docs/international-expansion/screenshots/responsive/account-1440x900.jpg new file mode 100644 index 0000000..67f3f6a Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/account-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/account-320x568.jpg b/docs/international-expansion/screenshots/responsive/account-320x568.jpg new file mode 100644 index 0000000..6b1e1e5 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/account-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/account-390x844.jpg b/docs/international-expansion/screenshots/responsive/account-390x844.jpg new file mode 100644 index 0000000..cfac859 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/account-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/account-768x1024.jpg b/docs/international-expansion/screenshots/responsive/account-768x1024.jpg new file mode 100644 index 0000000..8f7a803 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/account-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/app-1440x900.jpg b/docs/international-expansion/screenshots/responsive/app-1440x900.jpg new file mode 100644 index 0000000..fba6060 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/app-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/app-320x568.jpg b/docs/international-expansion/screenshots/responsive/app-320x568.jpg new file mode 100644 index 0000000..ef08f9b Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/app-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/app-390x844.jpg b/docs/international-expansion/screenshots/responsive/app-390x844.jpg new file mode 100644 index 0000000..7cfce7f Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/app-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/app-768x1024.jpg b/docs/international-expansion/screenshots/responsive/app-768x1024.jpg new file mode 100644 index 0000000..e6603a4 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/app-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/apps-1440x900.jpg b/docs/international-expansion/screenshots/responsive/apps-1440x900.jpg new file mode 100644 index 0000000..5b665ee Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/apps-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/apps-320x568.jpg b/docs/international-expansion/screenshots/responsive/apps-320x568.jpg new file mode 100644 index 0000000..fdff5f9 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/apps-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/apps-390x844.jpg b/docs/international-expansion/screenshots/responsive/apps-390x844.jpg new file mode 100644 index 0000000..dfa8d87 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/apps-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/apps-768x1024.jpg b/docs/international-expansion/screenshots/responsive/apps-768x1024.jpg new file mode 100644 index 0000000..4c98e71 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/apps-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ar-app-1440x900.jpg b/docs/international-expansion/screenshots/responsive/ar-app-1440x900.jpg new file mode 100644 index 0000000..498896b Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ar-app-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ar-app-320x568.jpg b/docs/international-expansion/screenshots/responsive/ar-app-320x568.jpg new file mode 100644 index 0000000..a95564b Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ar-app-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ar-app-390x844.jpg b/docs/international-expansion/screenshots/responsive/ar-app-390x844.jpg new file mode 100644 index 0000000..66acedf Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ar-app-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ar-app-768x1024.jpg b/docs/international-expansion/screenshots/responsive/ar-app-768x1024.jpg new file mode 100644 index 0000000..f8a5197 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ar-app-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ar-home-1440x900.jpg b/docs/international-expansion/screenshots/responsive/ar-home-1440x900.jpg new file mode 100644 index 0000000..f560ade Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ar-home-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ar-home-320x568.jpg b/docs/international-expansion/screenshots/responsive/ar-home-320x568.jpg new file mode 100644 index 0000000..0cfcd70 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ar-home-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ar-home-390x844.jpg b/docs/international-expansion/screenshots/responsive/ar-home-390x844.jpg new file mode 100644 index 0000000..929b7df Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ar-home-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ar-home-768x1024.jpg b/docs/international-expansion/screenshots/responsive/ar-home-768x1024.jpg new file mode 100644 index 0000000..2a7b597 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ar-home-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/collections-1440x900.jpg b/docs/international-expansion/screenshots/responsive/collections-1440x900.jpg new file mode 100644 index 0000000..a64cc53 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/collections-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/collections-320x568.jpg b/docs/international-expansion/screenshots/responsive/collections-320x568.jpg new file mode 100644 index 0000000..82a556e Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/collections-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/collections-390x844.jpg b/docs/international-expansion/screenshots/responsive/collections-390x844.jpg new file mode 100644 index 0000000..f73a757 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/collections-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/collections-768x1024.jpg b/docs/international-expansion/screenshots/responsive/collections-768x1024.jpg new file mode 100644 index 0000000..c5a6ee7 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/collections-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/de-app-1440x900.jpg b/docs/international-expansion/screenshots/responsive/de-app-1440x900.jpg new file mode 100644 index 0000000..022ca2b Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/de-app-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/de-app-320x568.jpg b/docs/international-expansion/screenshots/responsive/de-app-320x568.jpg new file mode 100644 index 0000000..0f51839 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/de-app-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/de-app-390x844.jpg b/docs/international-expansion/screenshots/responsive/de-app-390x844.jpg new file mode 100644 index 0000000..e3969d7 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/de-app-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/de-app-768x1024.jpg b/docs/international-expansion/screenshots/responsive/de-app-768x1024.jpg new file mode 100644 index 0000000..c3b4dba Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/de-app-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/es-home-1440x900.jpg b/docs/international-expansion/screenshots/responsive/es-home-1440x900.jpg new file mode 100644 index 0000000..26ea8fa Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/es-home-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/es-home-320x568.jpg b/docs/international-expansion/screenshots/responsive/es-home-320x568.jpg new file mode 100644 index 0000000..65a7b68 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/es-home-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/es-home-390x844.jpg b/docs/international-expansion/screenshots/responsive/es-home-390x844.jpg new file mode 100644 index 0000000..045a748 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/es-home-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/es-home-768x1024.jpg b/docs/international-expansion/screenshots/responsive/es-home-768x1024.jpg new file mode 100644 index 0000000..340aa3e Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/es-home-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/fr-apps-1440x900.jpg b/docs/international-expansion/screenshots/responsive/fr-apps-1440x900.jpg new file mode 100644 index 0000000..38175a5 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/fr-apps-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/fr-apps-320x568.jpg b/docs/international-expansion/screenshots/responsive/fr-apps-320x568.jpg new file mode 100644 index 0000000..9b91c85 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/fr-apps-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/fr-apps-390x844.jpg b/docs/international-expansion/screenshots/responsive/fr-apps-390x844.jpg new file mode 100644 index 0000000..48ce948 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/fr-apps-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/fr-apps-768x1024.jpg b/docs/international-expansion/screenshots/responsive/fr-apps-768x1024.jpg new file mode 100644 index 0000000..6483276 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/fr-apps-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/games-1440x900.jpg b/docs/international-expansion/screenshots/responsive/games-1440x900.jpg new file mode 100644 index 0000000..32286a4 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/games-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/games-320x568.jpg b/docs/international-expansion/screenshots/responsive/games-320x568.jpg new file mode 100644 index 0000000..239f644 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/games-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/games-390x844.jpg b/docs/international-expansion/screenshots/responsive/games-390x844.jpg new file mode 100644 index 0000000..3475b76 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/games-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/games-768x1024.jpg b/docs/international-expansion/screenshots/responsive/games-768x1024.jpg new file mode 100644 index 0000000..3297ed1 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/games-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/home-1440x900.jpg b/docs/international-expansion/screenshots/responsive/home-1440x900.jpg new file mode 100644 index 0000000..c336ec7 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/home-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/home-320x568.jpg b/docs/international-expansion/screenshots/responsive/home-320x568.jpg new file mode 100644 index 0000000..aec6e8b Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/home-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/home-390x844.jpg b/docs/international-expansion/screenshots/responsive/home-390x844.jpg new file mode 100644 index 0000000..0bfd8f9 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/home-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/home-768x1024.jpg b/docs/international-expansion/screenshots/responsive/home-768x1024.jpg new file mode 100644 index 0000000..9e0cae8 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/home-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ja-home-1440x900.jpg b/docs/international-expansion/screenshots/responsive/ja-home-1440x900.jpg new file mode 100644 index 0000000..7e45879 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ja-home-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ja-home-320x568.jpg b/docs/international-expansion/screenshots/responsive/ja-home-320x568.jpg new file mode 100644 index 0000000..dcf17ef Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ja-home-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ja-home-390x844.jpg b/docs/international-expansion/screenshots/responsive/ja-home-390x844.jpg new file mode 100644 index 0000000..d46d62e Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ja-home-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/ja-home-768x1024.jpg b/docs/international-expansion/screenshots/responsive/ja-home-768x1024.jpg new file mode 100644 index 0000000..fa630c9 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/ja-home-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/notifications-1440x900.jpg b/docs/international-expansion/screenshots/responsive/notifications-1440x900.jpg new file mode 100644 index 0000000..abf26d9 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/notifications-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/notifications-320x568.jpg b/docs/international-expansion/screenshots/responsive/notifications-320x568.jpg new file mode 100644 index 0000000..9586dba Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/notifications-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/notifications-390x844.jpg b/docs/international-expansion/screenshots/responsive/notifications-390x844.jpg new file mode 100644 index 0000000..9670cab Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/notifications-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/notifications-768x1024.jpg b/docs/international-expansion/screenshots/responsive/notifications-768x1024.jpg new file mode 100644 index 0000000..22f65c8 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/notifications-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/privacy-1440x900.jpg b/docs/international-expansion/screenshots/responsive/privacy-1440x900.jpg new file mode 100644 index 0000000..fec28de Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/privacy-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/privacy-320x568.jpg b/docs/international-expansion/screenshots/responsive/privacy-320x568.jpg new file mode 100644 index 0000000..408f156 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/privacy-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/privacy-390x844.jpg b/docs/international-expansion/screenshots/responsive/privacy-390x844.jpg new file mode 100644 index 0000000..e86b2fd Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/privacy-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/privacy-768x1024.jpg b/docs/international-expansion/screenshots/responsive/privacy-768x1024.jpg new file mode 100644 index 0000000..421db03 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/privacy-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/profile-1440x900.jpg b/docs/international-expansion/screenshots/responsive/profile-1440x900.jpg new file mode 100644 index 0000000..faa9353 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/profile-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/profile-320x568.jpg b/docs/international-expansion/screenshots/responsive/profile-320x568.jpg new file mode 100644 index 0000000..0e9a54f Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/profile-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/profile-390x844.jpg b/docs/international-expansion/screenshots/responsive/profile-390x844.jpg new file mode 100644 index 0000000..ede33cd Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/profile-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/profile-768x1024.jpg b/docs/international-expansion/screenshots/responsive/profile-768x1024.jpg new file mode 100644 index 0000000..ce34113 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/profile-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/recently-viewed-1440x900.jpg b/docs/international-expansion/screenshots/responsive/recently-viewed-1440x900.jpg new file mode 100644 index 0000000..818a284 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/recently-viewed-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/recently-viewed-320x568.jpg b/docs/international-expansion/screenshots/responsive/recently-viewed-320x568.jpg new file mode 100644 index 0000000..cc12476 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/recently-viewed-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/recently-viewed-390x844.jpg b/docs/international-expansion/screenshots/responsive/recently-viewed-390x844.jpg new file mode 100644 index 0000000..718e4bc Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/recently-viewed-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/recently-viewed-768x1024.jpg b/docs/international-expansion/screenshots/responsive/recently-viewed-768x1024.jpg new file mode 100644 index 0000000..4531323 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/recently-viewed-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/reviews-1440x900.jpg b/docs/international-expansion/screenshots/responsive/reviews-1440x900.jpg new file mode 100644 index 0000000..806887e Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/reviews-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/reviews-320x568.jpg b/docs/international-expansion/screenshots/responsive/reviews-320x568.jpg new file mode 100644 index 0000000..82d07ba Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/reviews-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/reviews-390x844.jpg b/docs/international-expansion/screenshots/responsive/reviews-390x844.jpg new file mode 100644 index 0000000..eb69e32 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/reviews-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/reviews-768x1024.jpg b/docs/international-expansion/screenshots/responsive/reviews-768x1024.jpg new file mode 100644 index 0000000..32a306b Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/reviews-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/saved-1440x900.jpg b/docs/international-expansion/screenshots/responsive/saved-1440x900.jpg new file mode 100644 index 0000000..7552a4e Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/saved-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/saved-320x568.jpg b/docs/international-expansion/screenshots/responsive/saved-320x568.jpg new file mode 100644 index 0000000..9ad6c63 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/saved-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/saved-390x844.jpg b/docs/international-expansion/screenshots/responsive/saved-390x844.jpg new file mode 100644 index 0000000..99e9b10 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/saved-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/saved-768x1024.jpg b/docs/international-expansion/screenshots/responsive/saved-768x1024.jpg new file mode 100644 index 0000000..57b09f7 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/saved-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/search-1440x900.jpg b/docs/international-expansion/screenshots/responsive/search-1440x900.jpg new file mode 100644 index 0000000..ed20ec3 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/search-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/search-320x568.jpg b/docs/international-expansion/screenshots/responsive/search-320x568.jpg new file mode 100644 index 0000000..6977991 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/search-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/search-390x844.jpg b/docs/international-expansion/screenshots/responsive/search-390x844.jpg new file mode 100644 index 0000000..d356862 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/search-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/search-768x1024.jpg b/docs/international-expansion/screenshots/responsive/search-768x1024.jpg new file mode 100644 index 0000000..479a2ee Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/search-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/security-1440x900.jpg b/docs/international-expansion/screenshots/responsive/security-1440x900.jpg new file mode 100644 index 0000000..97dd4a0 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/security-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/security-320x568.jpg b/docs/international-expansion/screenshots/responsive/security-320x568.jpg new file mode 100644 index 0000000..65f4462 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/security-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/security-390x844.jpg b/docs/international-expansion/screenshots/responsive/security-390x844.jpg new file mode 100644 index 0000000..2834197 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/security-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/security-768x1024.jpg b/docs/international-expansion/screenshots/responsive/security-768x1024.jpg new file mode 100644 index 0000000..4da9739 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/security-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/signin-1440x900.jpg b/docs/international-expansion/screenshots/responsive/signin-1440x900.jpg new file mode 100644 index 0000000..c336ec7 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/signin-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/signin-320x568.jpg b/docs/international-expansion/screenshots/responsive/signin-320x568.jpg new file mode 100644 index 0000000..2634e55 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/signin-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/signin-390x844.jpg b/docs/international-expansion/screenshots/responsive/signin-390x844.jpg new file mode 100644 index 0000000..0bfd8f9 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/signin-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/signin-768x1024.jpg b/docs/international-expansion/screenshots/responsive/signin-768x1024.jpg new file mode 100644 index 0000000..9e0cae8 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/signin-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/signup-1440x900.jpg b/docs/international-expansion/screenshots/responsive/signup-1440x900.jpg new file mode 100644 index 0000000..c336ec7 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/signup-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/signup-320x568.jpg b/docs/international-expansion/screenshots/responsive/signup-320x568.jpg new file mode 100644 index 0000000..2634e55 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/signup-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/signup-390x844.jpg b/docs/international-expansion/screenshots/responsive/signup-390x844.jpg new file mode 100644 index 0000000..0bfd8f9 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/signup-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/signup-768x1024.jpg b/docs/international-expansion/screenshots/responsive/signup-768x1024.jpg new file mode 100644 index 0000000..9e0cae8 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/signup-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/zh-categories-1440x900.jpg b/docs/international-expansion/screenshots/responsive/zh-categories-1440x900.jpg new file mode 100644 index 0000000..51295f4 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/zh-categories-1440x900.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/zh-categories-320x568.jpg b/docs/international-expansion/screenshots/responsive/zh-categories-320x568.jpg new file mode 100644 index 0000000..560e040 Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/zh-categories-320x568.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/zh-categories-390x844.jpg b/docs/international-expansion/screenshots/responsive/zh-categories-390x844.jpg new file mode 100644 index 0000000..ff6305e Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/zh-categories-390x844.jpg differ diff --git a/docs/international-expansion/screenshots/responsive/zh-categories-768x1024.jpg b/docs/international-expansion/screenshots/responsive/zh-categories-768x1024.jpg new file mode 100644 index 0000000..4d0dc1a Binary files /dev/null and b/docs/international-expansion/screenshots/responsive/zh-categories-768x1024.jpg differ diff --git a/docs/international-expansion/screenshots/rtl-ar-1440.jpg b/docs/international-expansion/screenshots/rtl-ar-1440.jpg new file mode 100644 index 0000000..7ccf26b Binary files /dev/null and b/docs/international-expansion/screenshots/rtl-ar-1440.jpg differ diff --git a/docs/international-expansion/screenshots/rtl-ar-360.jpg b/docs/international-expansion/screenshots/rtl-ar-360.jpg new file mode 100644 index 0000000..3978ac8 Binary files /dev/null and b/docs/international-expansion/screenshots/rtl-ar-360.jpg differ diff --git a/docs/international-expansion/seo-audit.md b/docs/international-expansion/seo-audit.md new file mode 100644 index 0000000..0c3d3fa --- /dev/null +++ b/docs/international-expansion/seo-audit.md @@ -0,0 +1,27 @@ +# Multilingual SEO audit + +## URL structure +- English (x-default): `https://webcenta.com/...` — unchanged, no redirects for existing URLs. +- Other languages: `https://webcenta.com//...` (`/es/`, `/fr/`, `/pt-br/`, `/zh-hans/`, `/ar/` …), served by the same routes (proxy rewrite). +- `/en/...` → 308 to the unprefixed URL (no duplicate English copy). Prefixes of languages that are switched off → 307 to English. +- No redirect based on Accept-Language or country. Only a visitor who chose a language (cookie) is sent to that language's URL, with a temporary redirect; crawlers do not keep that cookie. + +## hreflang and canonicals +- Each page declares a self-referencing canonical and `alternates.languages` for every **indexed** language plus `x-default` (`src/server/i18n/seo.ts`). The set is identical on every language version, so links are reciprocal by construction (unit-tested with `hreflangProblems`; checked live in Admin → SEO & languages). +- Page kinds: + - translated (home, Apps, categories, category pages): all indexed languages; + - app pages: all indexed languages when "Index app pages in other languages" is on (default), otherwise English only — descriptions are the developer's original text; + - original-language pages (about, policies, contact, collections): English only; other language versions carry `noindex, follow`. +- Search results, accounts, sign-in, API, admin and developer hosts remain `noindex` / excluded. + +## Sitemap +`/sitemap.xml` lists every indexable URL in every language it is indexed in, each with the same `xhtml:link` alternates (`src/server/seo/sitemap-entries.ts`), capped at 50,000 URLs. With 15 indexed languages, ~2,600 listings would reach the cap; split the sitemap (`generateSitemaps`) before that. + +## Metadata +Translated page titles, descriptions, category names and `og:locale`. Brand and app names are never translated. Homepage title, description and keywords per language are editable (Admin → SEO & languages); keywords are validated (≤ 10, 2–50 characters, no duplicates, links or markup). + +## Search Console and Bing +Existing verification (HTML file, meta tag, BingSiteAuth.xml) works on the root domain and covers all language folders. Submit `/sitemap.xml` again so the language URLs are discovered. **No claim is made that any page is indexed**: that can only be confirmed in Search Console and Bing Webmaster Tools. + +## Performance +Only the visitor's language catalogue plus English is loaded per request; the browser receives the small `common` catalogue (~8 KB). No hydration mismatch: the server sets `lang`/`dir` from the URL, and the client receives the same messages. diff --git a/docs/international-expansion/test-results.md b/docs/international-expansion/test-results.md new file mode 100644 index 0000000..f21ef2a --- /dev/null +++ b/docs/international-expansion/test-results.md @@ -0,0 +1,51 @@ +# Test results — international expansion + +Environment: this build container (Linux, Chromium via Playwright, MariaDB 10.11 and MySQL 8 locally). Production (webcenta.com) cannot be reached from this container: the network proxy refuses the host, so nothing below was run against the live site. + +## Automated +| Check | Result | +|---|---| +| `npm run typecheck` | pass | +| `npm run lint` | pass | +| `npm run build` (webpack, standalone) | pass | +| `npm run i18n:check` | pass — 15 of 50 languages have all 211 keys, 35 have none (English shown), 0 errors | +| `npx vitest run` (unit + DB) | 363 passed (includes `tests/unit/i18n.test.ts`, 16 tests: registry, routing, open-redirect guard, plural/fallback, catalogue validity, provenance, hreflang reciprocity, keyword validation, country-rule combination, age of majority) | +| Playwright, all projects (journeys, desktop, tablet, mobile) | 164 passed, 3 skipped (opt-in suites), 1 test fixed and re-run (see below) | +| `tests/e2e/international.spec.ts` | 11 passed | +| Responsive audit (`RESPONSIVE_AUDIT=1`), 23 pages × 10 viewports incl. es, fr, de, ja, zh-Hans, ar | 230 checks, 0 problems (no overflow, no element wider than the screen, tab bar inside the screen, no console errors) | +| Migration `20261116120000_international` vs schema (`prisma migrate diff`) | empty diff | + +The one failure in the full run was a test selector: `getByRole("combobox").first()` found the new language `