JavaScript Internationalization Helper
Playground
| Property | Value |
|---|---|
| {{ locale.getCountry().f }} | |
| Country code | {{ locale.getCountry().i }} |
| Currencies | {{ locale.getCountry().u }} |
| Telephone prefixes | {{ locale.getCountry().p }} |
| Preferred calendars | {{ locale.getCountry().c }} |
| JavaScript Week Days Order | {{ locale.getCountry().d }} |
| JavaScript Weekend Days | {{ locale.getCountry().e }} |
| Timezone Identifier | {{ i18n.timezone.getIdentifier() }} |
| Text direction | {{ locale.getTextDirection() }} |
| {{ d.long }} {{ d.long }} |
|---|
|
|
{{ dateTimeCalendar.toLocaleString() }}
{{ locale.getFormatter().approximateRelativeTimeFormatter(date) }}
|
Alternate Calendars: |
|||||
|---|---|---|---|---|---|
| Is preferred? | Calendar Name | Date string | Year | Month | Day |
| 💜 🤍 | {{ i.calendarName }} | {{ i.dateString }} | {{ i.year }} | {{ i.monthName }} [{{ i.month }}] | {{ i.day }} |
| Unit | Mode | Value |
|---|---|---|
{{ locale.getCountry().i }} |
{{ locale.getCountry().u[0] }} |
{{ locale.getFormatter().getNumberFormat({ style: "currency", currency: locale.getCountry().u[0] }).format(unitNumber) }} |
{{ u.unit }} |
{{ u.mode }} |
{{ u.value }} |