Files
WRNexusJS/examples/i18n-showcase/app/locales/en.json
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

70 lines
2.4 KiB
JSON

{
"header": {
"eyebrow": "WRNexus i18n",
"title": "Internationalization showcase"
},
"hero": {
"kicker": "Three languages, one page",
"title": "Everything needed for an international product",
"description": "The server chooses a language from the cookie or Accept-Language header and renders translated HTML."
},
"sections": { "content": "Translated content" },
"switcher": {
"label": "Language",
"placeholder": "Choose language",
"helper": "Saved securely in your language cookie",
"variantsTitle": "Responsive switcher variants",
"variantsDescription": "Every variant reads locales from configuration and the active language from the request cookie.",
"compactTitle": "Compact",
"segmentedTitle": "Segmented"
},
"cards": {
"text": {
"title": "Text translation",
"body": "Headings, paragraphs, buttons, and labels are rendered on the server."
},
"attributes": {
"title": "Attribute translation",
"label": "Search label",
"placeholder": "Search in English"
},
"interpolation": {
"title": "Interpolation",
"body": "Parameters such as a person's name are inserted safely.",
"action": "Open the dynamic API"
},
"plural": {
"title": "Plural rules",
"body": "One item and many items follow locale-aware CLDR rules."
},
"numbers": { "title": "Numbers and currency" },
"time": { "title": "Dates and relative time" },
"list": { "title": "List formatting" },
"fallback": {
"title": "Fallback chains",
"body": "Missing regional content falls back to the base language and then English."
},
"document": {
"title": "Document language",
"body": "The same cookie sets the server-rendered html lang and dir attributes."
}
},
"samples": {
"number": "1,234,567.89",
"currency": "₹1,234.50",
"percent": "78%",
"date": "15 August 2026",
"relative": "3 days ago",
"list": "Mumbai, Pune, and Nagpur"
},
"api": {
"title": "Try request-aware formatting",
"description": "The JSON endpoint uses ctx.lang, translations, Intl formatters, interpolation, plurals, and lists.",
"action": "View localized JSON",
"greeting": "Hello, {name}!",
"inbox": "{name}, you have {count, plural, one {# message} other {# messages}}.",
"itemOne": "# item",
"itemOther": "# items"
}
}