globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 603 forks source link

Date: Handle `{_value, _number}` entries #378

Open rxaviers opened 9 years ago

rxaviers commented 9 years ago

Globalize("haw").formatDate(new Date(), {datetime: "short"}) throws Error: E_UNSUPPORTED: Unsupported {"feature":"timezone patternv"}. But, what happens is that /main/haw/.../dateFormats/short is actually an object instead of a string (expected).

              "short": {
                "_value": "d/M/yy",
                "_numbers": "M=romanlow"
              }

haw and haw-US seems to be the only locales affected.

  1. Find such case in the UTS#35 specification.
  2. Fix implementation.
MelodyCuida commented 9 years ago

I'm now trying to get familiar with Globalize by fixing some issues. I have some problem looking for the '/main/haw/.../dateFormats/short'. Can you offer me some help? @rxaviers

rxaviers commented 9 years ago

Where exactly do you need help? Can you provide me an info of what you have done? Thanks

On Tuesday, March 17, 2015, Da Cui notifications@github.com wrote:

I'm now trying to get familiar with Globalize by fixing some issues. I have some problem looking for the '/main/haw/.../dateFormats/short'. Can you offer me some help? @rxaviers https://github.com/rxaviers

— Reply to this email directly or view it on GitHub https://github.com/jquery/globalize/issues/378#issuecomment-82074210.

+55 (16) 98138-1582, +1 (415) 568-5854, skype: rxaviers http://rafael.xavier.blog.br

MelodyCuida commented 9 years ago

I think I'v picked a hard one. May you give me an easy issue so that I can get involved in Globalize for GSoC? @rxaviers

jzaefferer commented 9 years ago

@MelodyCuida anything labelled help wanted is good to look at. I recommend checking #359, #360, #361, #362; maybe also #319 or #274. If you want to implement a new feature (extending the API), check #252.

MelodyCuida commented 9 years ago

@jzaefferer Thank you for your help!