Coder Social home page Coder Social logo

Comments (5)

littledan avatar littledan commented on June 17, 2024

I'd be fine with this. Any other opinions? @zbraniecki

from proposal-intl-locale.

zbraniecki avatar zbraniecki commented on June 17, 2024

This should return und. Just like

let loc = new Intl.Locale(undefined, {
  calendar: "gregorian"
}); // "und-u-ca-gregorian"

from proposal-intl-locale.

zbraniecki avatar zbraniecki commented on June 17, 2024

Per BCP47 4.1.5:


       *  The 'und' (Undetermined) primary language subtag identifies
          linguistic content whose language is not determined.  This
          subtag SHOULD NOT be used unless a language tag is required
          and language information is not available or cannot be
          determined.  Omitting the language tag (where permitted) is
          preferred.  The 'und' subtag might be useful for protocols
          that require a language tag to be provided or where a primary
          language subtag is required (such as in "und-Latn").  The
          'und' subtag MAY also be useful when matching language tags in
          certain situations.

from proposal-intl-locale.

littledan avatar littledan commented on June 17, 2024

My understanding is that ECMA 402 has been avoiding exposing the root locale. If we start throwing und around, we'd be breaking that.

My understanding is that this was discussed at the ECMA 402 call, and the conclusion was to continue to require a locale argument.

from proposal-intl-locale.

littledan avatar littledan commented on June 17, 2024

We discussed this possibility in the March Intl call and concluded that we should continue to require the string parameter. There was some debate about the semantics, whether it should default to und or the system locale, but both had disadvantages an unclear motivation.

from proposal-intl-locale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.