# i18n-tiny > The simplest i18n library for modern frameworks Type-safe, zero-dependency, minimal setup, under 1KB. One define() call gives you fully typed translations. ## Table of Contents ### Next.js - [Type-Safe i18n for the Next.js App Router](https://docs.unlibra.com/i18n-tiny/next/introduction.md): Add i18n to the Next.js App Router without heavy setup. i18n-tiny gives fully typed translations in Server and Client Components, with zero dependencies. - [Installation](https://docs.unlibra.com/i18n-tiny/next/installation.md): Install @i18n-tiny/next, or its alias next-i18n-tiny, with npm, pnpm or yarn to add type-safe i18n to your Next.js app. - [How to Add i18n to a Next.js App Router Project](https://docs.unlibra.com/i18n-tiny/next/usage.md): Add multiple languages to a Next.js App Router app, step by step: create message files, call define(), add locale routing, and use typed translations. ### Next.js API Reference - [Core](https://docs.unlibra.com/i18n-tiny/next/api-reference/core.md): API reference for define() in @i18n-tiny/next: options, return values and types for typed messages and translation functions in Next.js. - [Proxy](https://docs.unlibra.com/i18n-tiny/next/api-reference/proxy.md): API reference for the i18n-tiny Next.js Proxy (middleware): automatic locale detection, redirects and rewrites for localized routes. - [Router](https://docs.unlibra.com/i18n-tiny/next/api-reference/router.md): API reference for i18n-tiny router utilities in Next.js: a localized Link component and helpers for locale-aware navigation. ### Next.js TIPS - [Statically Generate Every Locale in Next.js](https://docs.unlibra.com/i18n-tiny/next/tips/ssg.md): Stop repeating generateStaticParams in every page. Define it once in the root layout and Next.js generates every page for every locale. - [Next.js Language Switcher That Keeps the Page](https://docs.unlibra.com/i18n-tiny/next/tips/language-switcher.md): Switch languages in Next.js without sending users back to the home page. Use the normalize prop of the i18n-tiny Link component with usePathname(). ### Astro - [Type-Safe i18n for Astro (SSG and SSR)](https://docs.unlibra.com/i18n-tiny/astro/introduction.md): Add i18n to an Astro site, static or server-rendered, without heavy setup. i18n-tiny gives fully typed translation keys with zero dependencies. - [Installation](https://docs.unlibra.com/i18n-tiny/astro/installation.md): Install @i18n-tiny/astro, or its alias astro-i18n-tiny, with npm, pnpm or yarn to add type-safe i18n to your Astro site. - [How to Add i18n to an Astro Site](https://docs.unlibra.com/i18n-tiny/astro/usage.md): Add multiple languages to an Astro site, step by step: create message files, call define(), set up SSG or SSR locale routing, and use typed translations. ### Astro API Reference - [Core](https://docs.unlibra.com/i18n-tiny/astro/api-reference/core.md): API reference for define() in @i18n-tiny/astro: options, return values and types for typed messages and translation functions in Astro. - [Middleware](https://docs.unlibra.com/i18n-tiny/astro/api-reference/middleware.md): API reference for the i18n-tiny Astro middleware: automatic locale detection and routing for server-side rendered (SSR) sites. - [Integration](https://docs.unlibra.com/i18n-tiny/astro/api-reference/integration.md): API reference for the i18n-tiny Astro integration: generate localized static pages for every locale in static (SSG) builds. - [Router](https://docs.unlibra.com/i18n-tiny/astro/api-reference/router.md): API reference for i18n-tiny router utilities in Astro: a localized Link component and helpers for locale-aware navigation. ### Astro TIPS - [Type-Check Translation Keys in Astro](https://docs.unlibra.com/i18n-tiny/astro/tips/typescript.md): Get autocomplete and compile-time errors for translation keys in Astro. i18n-tiny infers types from your message files, so a typo fails the type check. - [Astro Language Switcher That Keeps the Page](https://docs.unlibra.com/i18n-tiny/astro/tips/language-switcher.md): Switch languages in Astro without sending users back to the home page. Use the normalize prop of the i18n-tiny Link component. - [Typed Translations with Astro's Built-in i18n](https://docs.unlibra.com/i18n-tiny/astro/tips/built-in-i18n.md): Keep Astro's native i18n routing and add type-safe translations on top: configure astro.config.mjs, then use i18n-tiny for the messages. ### React - [Type-Safe i18n for React with Hooks](https://docs.unlibra.com/i18n-tiny/react/introduction.md): Add i18n to a React app with a Provider and hooks. i18n-tiny infers types from your messages, needs zero dependencies, and uses no global state. - [Installation](https://docs.unlibra.com/i18n-tiny/react/installation.md): Install @i18n-tiny/react, or its alias react-i18n-tiny, with npm, pnpm or yarn to add type-safe i18n to your React app. - [How to Add i18n to a React App](https://docs.unlibra.com/i18n-tiny/react/usage.md): Add multiple languages to a React app, step by step: create message files, call define(), wrap your app in the Provider, and use typed hooks. - [API Reference](https://docs.unlibra.com/i18n-tiny/react/api-reference.md): API reference for @i18n-tiny/react: define() options and the Provider, hooks and constants it returns, with their TypeScript types. ### Other - [i18n-tiny FAQ](https://docs.unlibra.com/i18n-tiny/faq.md): Answers to common i18n-tiny questions: type-safe keys, missing keys, interpolation, plurals, language detection, locale prefixes and the Next.js proxy.