David's public fiddles
-
Which scripts are supported?
No-Library (pure JS), HTML, CSS, JavaScript
-
which language and country code combinations are supported?
No-Library (pure JS), HTML, CSS, JavaScript
-
which language and country code combinations are supported?
No-Library (pure JS), HTML, CSS, JavaScript
-
Using existing locale aware methods with locale and options
No-Library (pure JS), HTML, CSS, JavaScript
-
Demo showing a narrow weekday
Narrow sets the weekday to one character.
-
Demo showing the use of maximumFractionDigits
The numbers are rounded, as there can only be a max of one fraction digit.
-
Demo showing the use of minimumFractionDigits
The fraction is padded with zeros due to having less digits than those specified.
-
Demo showing the use of minimumIntegerDigits
The integer number is padded with zeros due to having less digits than those specified.
-
Demo showing the use of currencyDisplay
The demo uses the `symbol` value. Note the different representation of the symbol depending on the locale.
-
Demo using the Japanese Yen currency
No-Library (pure JS), HTML, CSS, JavaScript
-
Demo using the currency formatting style
No-Library (pure JS), HTML, SCSS, JavaScript
-
Demo using the percent number formatting style
No-Library (pure JS), HTML, CSS, JavaScript
-
Demo using the decimal number formatting style
No-Library (pure JS), HTML, CSS, JavaScript
-
Demo setting the useGrouping property
useGrouping will enable or disable the grouping separator (commonly known as the thousands separator)
-
Demo showing the numberingSystem being set via nu Unicode extension
In this case Bengali digits are being used.
-
Demo showing the use of the compare method
The compare method is used by Collator, both for sorting (used in this example), and search.
-
Demo showing the use of the format method
The format method is used by both NumberFormat and DateTimeFormat to format based on the supplied or default options.
-
Is case sorting supported?
No-Library (pure JS), HTML, CSS, JavaScript
-
Is numeric sorting supported?
No-Library (pure JS), HTML, CSS, JavaScript
-
In Danish, “å” is a different letter to “a”
No-Library (pure JS), HTML, CSS, JavaScript