David's public fiddles
-
Set date to use UTC time zone
No-Library (pure JS), HTML, CSS, JavaScript
-
min and max significant digits
Test using minimumSignificantDigits and maximumSignificantDigits.
-
Demo showing the use of resolvedOptions
Use resolvedOptions() for each of the three types, printing the options to the console.
-
Which ISO 639-2 are supported?
Make an array of all ISO 639-2 codes and test of they are supported.
-
Find locales that are not supported by both IE and Chrome
Compare the locales that are supported and list the locales supported by Chrome that are not supported by IE, and vice versa.
-
Which ISO 639-1 are supported?
Make an array of all ISO 639-1 codes and test of they are supported.
-
Test to see which calendars are supported, LDML r.24
Include the Unicode extension for setting the calendar in the locale, based on the latest trunk of LDML, which will become revision 24. Display the locale used, then format the date using that locale.
-
Display all numerals in number system
Include the Unicode extension for setting the number system in the locale. Display the locale used, then format the number using that locale.
-
Test to see what number systems are supported
Include the Unicode extension for setting the number system in the locale. Display the locale used, then format the date using that locale.
-
Test to see which calendars are supported
Include the Unicode extension for setting the calendar in the locale. Display the locale used, then format the date using that locale.
-
Show BYR as a symbol
No-Library (pure JS), HTML, CSS, JavaScript
-
is islamicc supported
No-Library (pure JS), HTML, CSS, JavaScript
-
what happens when Script sub tag is not supported?
Does the implementation strip the script code to leave the base language code, or use the fallback option?
-
Does localization API support UN M.49
Tests to see if the implementation supports UN M.49. Relies on locales existing in the implementation.
-
Display date to see if alternative scripts are available
Print out the date in long format to test to see if the script tag is supported and a locale using it is supported.
-
Is alternative script available for languages with more than one writing system?
Test to see if ISO 15924 script code is supported. Relies on the UA supporting both scripts for that locale.
-
Does localization API support ISO 639-2?
Tests to see if the implementation supports ISO 639-2 three alpha language codes. Both with and without a region code. Tests both B and T code for German ("ger" and "deu" respectively) Note: Chrome currently doesn’t support any region specific locales for German or French, so both will fall back to the base language.
-
Does locale fallback to second in list
Set the first locale to an unknown version of English. Does it fallback to en-GB or en?
-
Are locales supported?
Test for Serbian, Bosnian, Belorussian, Hawaiian, and Norwegian Sami. Bear in mind if the base local is supported, it will report it as supported.
-
Options used by various Arabic locales
ar, ar-SA (Saudi Arabia), ar-EG (Egypt)