Comments (2)
Has a test been added for this? An indirect test would be possible with by checking the value of 'calendar' option. For instance, something like this can be used to test.
var options = Intl.DateTimeFormat("ar-u-ca-islamic-civil").resolvedOptions();
assertEquals(options.calendar, "islamic-civil");
from ecma402.
Thanks @caridy!
from ecma402.
Related Issues (20)
- Intl API for parsing locale aware strings HOT 2
- Inconsistency in definition of "calendar types" HOT 1
- Decimal integration HOT 1
- How to use ecma402 Intl.GetCanonicalLocales in Android HOT 1
- Intl.NumberFormat() - narrowSymbol issue in en-CA culture, USD currency HOT 6
- Intl.DateTimeFormat.prototype.formatRange and time only range display
- Intl.DateTimeFormat.prototype.formatRange and time only range display HOT 3
- Intl.DisplayNames dateTimeField - add Today, Yesterday and Tomorrow HOT 2
- Intl.DateTimeFormat error with formatRange HOT 2
- Find a replacement for indirect field reference HOT 1
- ResolvedLocale locale string manipulation is confusing and inconsistent
- List of ISO country codes HOT 2
- ky-KG language support HOT 2
- Intl.DateTimeFormat era: "long" outputs date in addition to era HOT 3
- Get current locale by new Intl.Locale() without tag. HOT 3
- Update numbering systems HOT 2
- Intl.DateTimeFormat does not support 'und' locale HOT 7
- Preferred DateTimeFormat invocation to get YYYY-MM-DD formatting HOT 9
- support `compactDisplay: 'long'` in currency formatting HOT 5
- Consider relaxing locale resolution for `Intl.Segmenter` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecma402.