Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normative: Add calendar and numberingSystem options #175

Merged
merged 7 commits into from
Feb 27, 2020

Commits on Jan 9, 2020

  1. Normative: Add calendar and numberingSystem options

    This patch allows calendar and numberingSystem to be specified in
    the options bag of the DateTimeFormat and NumberFormat constructors.
    One use case for these options would be, when working with locales
    which have two numbering systems and calendars in use--the UA default
    may be the non-Western one, but in some contexts, it may be appropriate
    to use the Western one. Currently, without the patch, it would be
    necessary to parse the BCP 47 language tag in the application, but Intl
    provides no library to do so. For example, this all occurs in this bug:
    https://bugzilla.mozilla.org/show_bug.cgi?id=1370086
    
    This patch validates the calendar and numbering system by comparing
    them to the grammar allowed for Unicode extension tags, per the resolution
    documented at tc39#175 (comment)
    
    Related bug: tc39#105 . This patch leaves out "collation" because of a lack
    of clear use cases.
    littledan committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    436f899 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b8dde1f View commit details
    Browse the repository at this point in the history
  3. Normative: Apply fixes suggested by anba

    - Convert calendar and numbering system to lowercase, analogously
      with canonicalizing language tags
    - Reference the Unicode grammar, to avoid the need to keep up to
      date with notational changes from upstream
    littledan committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    47d50c3 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2020

  1. Configuration menu
    Copy the full SHA
    04af32b View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2020

  1. Merge pull request #1 from caiolima/more-options

    Daniel Ehrenberg authored Jan 28, 2020
    Configuration menu
    Copy the full SHA
    4a6632c View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2020

  1. Adding case to map values properly when mapping to lower case on #sec…

    …-case-sensitivity-and-case-mapping
    caiolima committed Feb 10, 2020
    Configuration menu
    Copy the full SHA
    497e253 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2020

  1. Merge pull request #2 from caiolima/more-options

    Adding case to map values properly when mapping to lower case
    Daniel Ehrenberg authored Feb 11, 2020
    Configuration menu
    Copy the full SHA
    6ab62a5 View commit details
    Browse the repository at this point in the history