Files
WRNexusJS/examples/i18n-showcase/README.md
T
Clintchiz 586a6db8ff
Quality / quality (ubuntu-latest) (push) Failing after 21s
Quality / quality (windows-latest) (push) Canceled after 0s
release: WRNexusJS 0.8.0
2026-08-02 23:18:51 +05:30

15 lines
637 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 `wire-lang` cookie. The `/api/formats` endpoint demonstrates
request-aware `Intl` formatting using the same selected locale.