Introducing a new way to review your PRs.

Read the announcement

calicastle / cali.so

Personal website for Cali Castle

View on GitHub

21 documents · Updated Sep 21, 2026

docs / calibaby-localized-content

CaliBaby localized content

CaliBaby presents one public product experience through matched Chinese and English route families. Each family includes a landing page, help page, privacy policy, and terms of use. The pages use localized copy and assets while keeping the product message, App Store destination, and page relationships aligned.

Route families

The route families give each language a stable public URL and a direct path to its matching language. Chinese is the default family. English adds the /en prefix to the same unlocalized path.

Localized route pairs

The landing pages use /calibaby for Chinese and /en/calibaby for English. The supporting destinations keep the same suffix in both families:

PurposeChineseEnglish
Product landing page/calibaby/en/calibaby
Help and support/calibaby/help/en/calibaby/help
Privacy policy/calibaby/privacy/en/calibaby/privacy
Terms of use/calibaby/terms/en/calibaby/terms

The language switch on each page points to the paired route. Canonical and alternate-language links use the same pairing, so a search engine can relate the two versions instead of treating them as separate products. lib/locale-route.ts• L1-3, lib/locale-route.ts• L58-85, lib/locale-metadata.ts• L26-38

References: lib/locale-route.ts• L58-85 lib/locale-metadata.ts• L26-38 app/…/page.tsx• L1-8 app/…/page.tsx• L1-8

Public destinations

The landing page introduces the iPhone and Apple Watch app. The help page explains care records, Family Sync, backups, voice records, deletion, and contact paths. The privacy and terms pages provide the related legal information in the selected language.

The help and legal pages share the product header and footer. They link to the other language and to the related CaliBaby destinations, so a reader can move from product information to support or legal material without leaving the product surface. app/…/calibaby-pages.tsx• L126-153, app/…/calibaby-pages.tsx• L211-237

References: docs/calibaby-public-copy.md• L35-49 docs/calibaby-public-copy.md• L110-124 app/…/calibaby-pages.tsx• L126-153 app/…/calibaby-pages.tsx• L211-237

Public content model

CaliBaby separates product presentation from long-form public policy content. The landing page keeps its short product message and feature summary with the landing view, while the support and legal pages use a shared content source with language-specific sections.

Landing content

Landing content describes the app as a record for pregnancy and everyday baby care. It presents four broad capabilities: pregnancy records, daily care, quick entry, and care with authorized family members. The Chinese and English versions are native copies of the same product promise rather than a word-for-word rendering of one source.

The landing page also states the platform and access model: iPhone and Apple Watch support, the required Apple operating-system versions, free download, and optional Cali Baby Pro. The App Store link is shared across languages, while each language uses its own call to action and badge. lib/calibaby-public-content.ts• L32-89, app/…/calibaby-landing.tsx• L25-52

References: lib/calibaby-public-content.ts• L32-89 app/…/calibaby-landing.tsx• L25-52 docs/calibaby-public-copy.md• L1-5

The public copy file is the source for the Chinese and English help, privacy, and terms pages. Each language section declares its route, metadata title, metadata description, page title, and body. The page system selects one section by language and page kind, then sends the body to the matching page layout.

The two languages carry the same product and legal commitments but are written as native versions. This permits language-specific phrasing while preserving shared rules such as local-first records, optional Family Sync, authorized family access, deletion boundaries, and the limits of health guidance. docs/calibaby-public-copy.md• L3-5, lib/calibaby-public-content.ts• L91-166

The source also contains publication gates for these pages. These gates cover deletion behavior, audio and transcript removal, analytics consent, provider disclosures, App Store privacy information, region changes, and the final legal review. The page metadata keeps support and legal pages out of search results until those gates are satisfied, while still allowing links to be followed. docs/calibaby-public-copy.md• L7-21, lib/calibaby-public-content.ts• L169-185

References: docs/calibaby-public-copy.md• L3-21 docs/calibaby-public-copy.md• L35-41 docs/calibaby-public-copy.md• L110-116 docs/calibaby-public-copy.md• L185-191 lib/calibaby-public-content.ts• L91-185

Localized assets

Localized assets make the public page feel native to its language without changing the product route model. The app icon is shared. Screenshot content and App Store badges vary by locale.

Product imagery

The landing page uses the CaliBaby app icon in the header and hero. Its screenshot gallery selects Chinese screenshots for the Chinese route and English screenshots for the English route. The gallery presents ten paired views: everyday care, family care, voice recording, bottle input, feeding records, sleep records, growth records, baby supplies, vaccination, and Apple Watch with widgets.

The two locale sets keep the same product subjects but do not use the same display order. Each screenshot has matching alternative text and localized control labels, so the gallery remains usable with assistive tools while its visible content and controls follow the active route. app/…/calibaby-screenshot-carousel.tsx• L18-124, app/…/calibaby-screenshot-carousel.tsx• L128-193

References: app/…/calibaby-landing.tsx• L54-84 app/…/calibaby-landing.tsx• L139-144 app/…/calibaby-screenshot-carousel.tsx• L18-124 app/…/calibaby-screenshot-carousel.tsx• L128-193 public/…/01-everyday-care.653dd75e16a9.webp public/…/01-everyday-care.webp public/…/03-watch-and-widgets.a053fcb8d0fe.webp public/…/03-watch-and-widgets.webp

Store badges

The landing page uses Apple's Simplified Chinese badge on the Chinese route and Apple's English badge on the English route. Both badges lead to the same CaliBaby App Store listing, so localization changes the invitation and presentation rather than the download target. app/…/calibaby-landing.tsx• L14-23, app/…/calibaby-landing.tsx• L120-135, lib/calibaby-public-content.ts• L12-14

References: app/…/calibaby-landing.tsx• L14-23 app/…/calibaby-landing.tsx• L120-135 public/…/app-store-badge-zh-cn.svg public/…/app-store-badge-en-us.svg lib/calibaby-public-content.ts• L12-14

Metadata

Metadata connects each localized page to its public identity, language pair, and social preview. The landing page uses product marketing metadata. The support and legal pages use the metadata declared beside their localized public copy.

Page metadata

Every CaliBaby page receives a localized title and description. The metadata includes the App Store application ID, the localized canonical URL, the paired Chinese and English URLs, and a locale-specific Open Graph and Twitter preview. The preview image is generated from the localized CaliBaby route rather than from the general Cali Castle site image.

This model keeps browser metadata, search alternates, and social links consistent with the visible route. A change to a route or language pairing must therefore be reflected in both the page links and the metadata pair. lib/calibaby-public-content.ts• L169-190, lib/calibaby-public-content.ts• L233-280

References: lib/calibaby-public-content.ts• L169-190 lib/calibaby-public-content.ts• L233-280 app/…/page.tsx• L1-8 app/…/page.tsx• L1-8

Application structured data

The landing page publishes structured data that describes CaliBaby as a free mobile health application from Zolplay. It names the localized app, points to the App Store, lists supported devices and operating-system versions, and exposes the localized feature summary.

The structured data is rendered with the landing page. It gives search and sharing systems a product-level view that matches the hero copy and feature section instead of describing the support or legal pages as separate products. lib/calibaby-public-content.ts• L193-230, app/…/calibaby-landing.tsx• L89-103

References: lib/calibaby-public-content.ts• L193-230 app/…/calibaby-landing.tsx• L89-103

Landing-page rendering

The landing experience combines localized product copy, a download action, product screenshots, and a feature summary in one public page. Its page shell also provides links to support, legal information, and the paired language.

Landing composition

The landing page follows a simple reader path:

  1. The header identifies CaliBaby and offers help or a language switch.
  2. The hero states the product value and offers the App Store download.
  3. The screenshot gallery shows ten representative app screens with localized descriptions.
  4. The product details section explains the app scope, platform facts, and broad features.
  5. The footer links to help, privacy, and terms.

The route passes only the locale into the shared landing view. The view then chooses the matching copy, store badge, product details, screenshot set, and structured data. app/…/page.tsx• L1-8, app/…/page.tsx• L1-8, app/…/calibaby-landing.tsx• L89-177

The following diagram shows how a localized landing request becomes a product page and how its public links stay inside the matching route family.

flowchart TD
    R[Localized landing route] --> L[Locale selection]
    L --> C[Localized copy and product facts]
    L --> A[Localized badge and screenshots]
    C --> H[Hero and feature sections]
    A --> G[Screenshot gallery]
    H --> P[Landing page]
    G --> P
    P --> S[App Store]
    P --> D[Help, privacy, and terms]
    P --> X[Paired language route]

References: app/…/calibaby-landing.tsx• L54-84 app/…/calibaby-landing.tsx• L89-177 app/…/calibaby-screenshot-carousel.tsx• L128-193

Support and legal routes use one shared page view with a page kind of support, privacy, or terms. The support layout adds quick links, contact cards, health guidance, and legal actions around the source copy. The legal layout separates the effective date and introduction from the remaining policy or terms body.

Markdown headings and links are rendered as page content. Internal links stay within the active language family, while the product header provides the direct language switch. The localized root layout also sets the document language and supplies the CaliBaby visual shell for each route family. app/…/calibaby-pages.tsx• L78-124, app/…/calibaby-pages.tsx• L260-325, app/…/layout.tsx• L1-15, app/…/layout.tsx• L1-15

References: app/…/calibaby-pages.tsx• L78-124 app/…/calibaby-pages.tsx• L260-325 app/…/calibaby-document.tsx• L38-65 app/…/layout.tsx• L1-15 app/…/layout.tsx• L1-15

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the Chinese and English route pairs aligned across page links, canonical URLs, alternate-language metadata, and sitemap entries.
  • Keep landing copy, feature facts, structured data, screenshot alternative text, screenshot order, and App Store badge language in agreement.
  • Keep the ten screenshot subjects paired between screenshots/ and screenshots/en/ when adding, removing, or renaming a product view. Review the locale-specific order when changing the carousel map.
  • Keep the marker order and required route and metadata fields in docs/calibaby-public-copy.md valid for both language sections.
  • Recheck publication gates before making support, privacy, or terms pages indexable.
  • When adding a public destination, add its page-kind handling, language switch path, footer or legal links, metadata pair, and any public-copy section together.

Important failure modes

TriggerConsequenceGuard
A localized public-copy marker or required metadata line is missingThe selected support or legal page cannot produce its content or metadataKeep the Chinese and English sections in the declared source format and load both language variants during review
An English route loses its /en pair or a language switch uses the wrong suffixUsers or search systems reach the wrong language or an unrelated pageDerive paired paths from the shared locale path rules and check canonical and alternate links together
A Chinese and English screenshot subject no longer has matching assets or alt textThe gallery shows a missing or wrong-language image and its accessible description can describe another screenKeep all ten subjects paired in both asset directories and in the carousel map. Check the locale-specific order when changing the list
A locale-specific store badge is missingThe landing page fails to present the intended localized download actionKeep both locale badges available and verify the locale lookup when changing the landing action
Publication gates remain open while support or legal copy is publishedPublic claims can differ from the product's deletion, data, or legal behaviorKeep support and legal metadata non-indexable until the source gates are closed

Key files

FileWhy to read it
lib/calibaby-public-content.tsDefines the public content boundary, landing product facts, App Store identity, page metadata, and structured application data.
docs/calibaby-public-copy.mdGives the Chinese and English source copy, route and metadata declarations, and publication gates for support and legal pages.
app/…/calibaby-landing.tsxShows the reader-facing landing flow and how locale-specific copy and assets form the product page.
app/…/calibaby-pages.tsxShows the shared rendering model for support, privacy, and terms pages.
app/…/calibaby-screenshot-carousel.tsxMaps the ten paired screenshot assets, accessible descriptions, locale-specific order, and localized carousel controls into the landing gallery.
app/…/page.tsxDefines the Chinese landing entry point.
app/…/page.tsxDefines the English landing entry point.
app/…/layout.tsx and app/…/layout.tsxSet the language-specific document shell for the two route families.
CaliBaby product experienceProvides the parent-level view of how this localized content fits into the wider CaliBaby product surface.