15 lines
636 B
Markdown
15 lines
636 B
Markdown
# WRNexus i18n showcase
|
|
|
|
A complete English, Hindi, and Marathi example covering SSR translations, translated attributes,
|
|
interpolation, plural rules, numbers, INR currency, percentages, dates, relative time, lists,
|
|
fallback chains, browser language negotiation, and cookie-persisted language selection.
|
|
|
|
```bash
|
|
bun install
|
|
bun run --cwd examples/i18n-showcase dev
|
|
```
|
|
|
|
Open `http://localhost:3000`, change the language with the packaged `LanguageSwitcher`, and inspect
|
|
the document `<html lang>` attribute and `wrn-lang` cookie. The `/api/formats` endpoint demonstrates
|
|
request-aware `Intl` formatting using the same selected locale.
|