Skip to content

Marketing pages: LatAm-Spanish variants + locale-aware views - #151

Merged
WebTigers merged 1 commit into
mainfrom
feat/marketing-es
Aug 20, 2026
Merged

Marketing pages: LatAm-Spanish variants + locale-aware views#151
WebTigers merged 1 commit into
mainfrom
feat/marketing-es

Conversation

@WebTigers

Copy link
Copy Markdown
Owner

Gives the shipped marketing pages Spanish versions, so /es/vibe (etc.) serves Spanish instead of the English page.

Approach

Marketing pages are long-form content the view owns — not string-keyed (per I18N.md). So each ships a translated sibling view, resolved by locale:

  • IndexController::postDispatch() renders index/<action>.<locale>.phtml when a variant exists, else the English default. It uses renderScript() rather than setScriptAction() because ZF1's inflector rewrites a dotted action (vibe.esvibe-es) and would 500.
  • 8 LatAm-Spanish pages (index, vibe, agency, creators, developers, features, get-tiger, hosting) — -form, idiomatic, adapted for the Spanish-speaking market (matching the 🇲🇽 flag). Each mirrors the English structure line-for-line; brand names, code, classes, and hrefs are unchanged.

Locales without a variant (pt/de/fr/hi) fall through to English — no breakage.

Verified

Deployed to dev: all 8 /es/<page> render 200 with Spanish content, every /<page> stays English, home + /es both 200. All 8 .es.phtml lint-clean and structurally mirror their English source.

🤖 Generated with Claude Code

The 8 shipped marketing pages are long-form content the view owns (not string-
keyed per I18N.md), so each ships a translated sibling view:
- IndexController::postDispatch() renders index/<action>.<locale>.phtml when a
  variant exists, else the English default. Uses renderScript() (NOT
  setScriptAction — ZF1's inflector rewrites a dotted action "vibe.es"→"vibe-es").
- index/{index,vibe,agency,creators,developers,features,get-tiger,hosting}.es.phtml
  — LatAm-Spanish (tú-form, idiomatic), mirroring the English structure exactly;
  brand names, code, classes, hrefs unchanged.

So /es/vibe serves the Spanish page, /vibe stays English. Locales without a
variant (pt/de/fr/hi) fall through to English. Verified live on dev: all 8
/es/<page> render 200 with Spanish; /<page> stays English.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@WebTigers
WebTigers merged commit 7682709 into main Aug 20, 2026
13 checks passed
@WebTigers
WebTigers deleted the feat/marketing-es branch August 20, 2026 14:21
@WebTigers WebTigers mentioned this pull request Aug 20, 2026
WebTigers added a commit that referenced this pull request Aug 20, 2026
- Lang switcher: add Hindi (🇮🇳 हिन्दी) — was falling back to globe + "HI". (#150)
- Marketing pages: LatAm-Spanish variants (/es/vibe etc.) + locale-aware view
  resolution in IndexController (renders index/<action>.<locale>.phtml when
  present, else the English default). (#151)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant