Framework Adapters
Astro SSR
pico-intl works in Astro's server-side frontmatter with zero client JavaScript.
ts
---
import { getAstroT } from '@pico-intl-dev/astro';
import en from '../locales/en.json';
import es from '../locales/es.json';
const t = getAstroT(Astro.currentLocale ?? 'en', { en, es }, 'en');
---
<h1>{t('hero.title')}</h1> Key points
- getAstroT() is the v1 helper for Astro frontmatter.
- Astro builds localized static pages with no client JavaScript by default.
- Middleware helpers are available for request-time locale detection.
Next step
Copy the example into a small fixture, run the validation commands, and keep framework-specific routing, hydration, or SSR behavior covered by your app tests.