import LanguageSwitcher from "@wrnexus/i18n/components/LanguageSwitcher.wrn" page InternationalizationShowcase { seo { title = "Internationalization Showcase" description = "English, Hindi, and Marathi localization with WRNexusJS." } view {

WRNexus i18n

Internationalization showcase

Three languages, one page

Everything needed for an international product

The server chooses a language from the cookie or Accept-Language header and renders translated HTML.

Responsive switcher variants

Every variant reads locales from configuration and the active language from the request cookie.

Compact
Segmented

Translated content

Text translation

Headings, paragraphs, buttons, and labels are rendered on the server.

Attribute translation

Plural rules

One item and many items follow locale-aware CLDR rules.

Numbers and currency

12,34,567.89

₹1,234.50

78%

Dates and relative time

15 August 2026

3 days ago

List formatting

Mumbai, Pune, and Nagpur

Fallback chains

Missing regional content falls back to the base language and then English.

Document language

The same cookie sets the server-rendered html lang and dir attributes.

Try request-aware formatting

The JSON endpoint uses ctx.lang, translations, Intl formatters, interpolation, plurals, and lists.

View localized JSON
} }