Skip to content

International expansion: languages, country policies, ad content policy, card navigation and PWA prompt placement - #14

Merged
yonixnetwork merged 4 commits into
mainfrom
claude/youthful-cerf-4xclco
Nov 22, 2026
Merged

yonixnetwork merged 4 commits into
mainfrom
claude/youthful-cerf-4xclco

Conversation

@yonixnetwork

Copy link
Copy Markdown
Owner

Summary

  • Bottom navigation and prompts. The header, tab bar and footer were already rendered once. The real overlap was the install, update and push prompts and the cookie notice, which sat at a fixed offset with no safe-area term. All four now use one above-mobile-nav rule (tab-bar offset + safe area + tab-bar height). Tests count exactly one header and one tab bar across navigations, Back and scrolling, including emulated installed-app mode.
  • Cards and app pages.
    • Store rows and featured cards are now a single link each, with no View pills and no chevron buttons.
    • App pages have exactly one "Visit Official Website" button.
    • The "Ready to try" box (its ad and second visit button) is removed. App pages show at most 2 ads (setting capped at 2), none directly below the button.
  • Ad content policy.
    • New Settings → Ad content policy: brand-safety categories (all blocked by default), behaviour for unknown countries, a blocked-advertiser register, and the dates provider dashboards were last checked.
    • No ads on pages about blocked categories or 18+ apps.
    • "Report this ad" link → Admin → Ad reports & policy, with a provider checklist.
    • The provider limits are documented: Webcenta cannot inspect the creatives inside ad frames.
  • Country policies.
    • New CountryPolicy table and Admin → Country policies page: restricted and permitted categories, adult age, ads off or providers off, last reviewed, notes.
    • Restrictions of the detected and chosen country add up, so a chosen country can never relax them.
    • The ad frame endpoint obeys the same rules.
    • The account country field is now an optional "Region".
    • Privacy Policy updated: country detection, language storage and ad-report retention.
  • Languages.
    • Registry of 50 languages (P1 15 / P2 25 / P3 10 with Afrikaans), /es/…-style URLs via a proxy rewrite, /en/… → 308.
    • Language selector in the header, footer, account menu and profile, with a cookie plus account preference. The browser language is only suggested, never redirected to.
    • Lazy per-namespace catalogues, Intl formatting, real RTL (dir, logical classes).
    • 14 languages have all 211 bundled keys as AI drafts that native speakers have not reviewed; 35 languages fall back to English.
    • Admin → SEO & languages: coverage, missing keys, errors, review state, hreflang check, sitemap status, per-language homepage metadata (validated keywords) and category names.
    • npm run i18n:check plus a unit test.
  • SEO. Reciprocal hreflang with x-default for indexed languages only, self canonicals, noindex for pages whose text isn't translated, and a multilingual sitemap with matching alternates.
  • Security. Fixed an open redirect I introduced and caught in review (/en//host). The locale header is always set by the proxy. Details are in docs/international-expansion/test-results.md.

New migration: 20261116120000_international (4 new tables, no changes to existing ones). Docs: docs/international-expansion/.

Not done / limitations

  • Hostinger adds no country header, so country is "unknown" until a CDN that sets one (e.g. Cloudflare) is in front of the site. Installing an offline GeoIP database was blocked by this session's permission policy.
  • The admin portal, developer portal, emails, legal texts and most auth/account forms are still English.
  • Tested in Chromium emulation, not on real devices; webcenta.com is unreachable from the build container.

Test plan

  • typecheck, lint, build
  • npm run i18n:check
  • vitest: 363 passed
  • Playwright, all projects: 164 passed / 3 skipped (one selector fixed and re-run)
  • Responsive audit: 23 pages × 10 viewports (incl. es, fr, de, ja, zh-Hans, ar), 230 checks, 0 problems

Generated by Claude Code

…prompt placement

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NrPV5wwqB6Kvn6Jo16iwcb
…p; privacy policy; international E2E

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NrPV5wwqB6Kvn6Jo16iwcb
…anslated search box

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NrPV5wwqB6Kvn6Jo16iwcb
@hostinger

hostinger Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Hostinger preview

Preview Commit Updated
stylish-brown-cod-96.hostingersite.com bf892cb Nov 21, 2026 11:04 UTC

A new build starts on every push to claude/youthful-cerf-4xclco; the table shows the commit currently served. The preview is deleted when this pull request is closed.

…config)

Prisma 7.10.1 pins effect 3.20.0, which the new advisory flags as high
severity; 3.22.5 is the patched release of the same major. npm audit
--omit=dev now reports 0 vulnerabilities; prisma generate, validate and
migrate status unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NrPV5wwqB6Kvn6Jo16iwcb
@yonixnetwork
yonixnetwork merged commit 39a5954 into main Nov 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants