CLDR - iLib-js/iLib GitHub Wiki

CLDR

  • iLib ์€ ํ˜„์žฌ CLDR 30 ๋ฒ„์ „์œผ๋กœ Sync Up ๋˜์–ด์žˆ๋‹ค.

  • svn checkout http://www.unicode.org/repos/cldr-aux/json/

  • https://github.com/unicode-cldr/cldr-json

  • Date Field Symbole Table

  • Date Field Symbole Table

  • Plural Data

  • CLDR to iLib LocaleData

  • 12/24 ์‹œ๊ฐ„์˜ ์ •๋ณด : locale/ca-gregorian.json ์˜ timeFormats ์—์„œ ์‹œ๊ฐ„์„ ํ‘œ์‹œํ•ด์ฃผ๋Š” H ๊ฐ’์„ ํ†ตํ•ด ํ™•์ธ.
    H : 24 ์‹œ๊ฐ„ / h : 12 ์‹œ๊ฐ„

  • firstDay/weekendStart/weekendEnd : supplemental/weekData.json
    {"sun":0, "mon":1, "tue":2, "wed":3, "thu":4, "fri":5, "sat":6}

  • AM/PM translated string
    calendar-> dayPeriods -> format -> wide

  • DateFmt ์—์„œ Length์— ๋”ฐ๋ฅธ Month ํ‘œ์‹œ : locale/ca-gregorian.json
    M: 1,2,3โ€ฆ..12
    MM: 01,02,03โ€ฆ.12
    MMM: months->format->abbreviated
    MMMM: months->format->wide
    NN :months->format->abbreviated ์—์„œ ์•ž์—์„œ ๋‘๊ธ€์ž๋งŒ ์ถ”์ถœ
    N :months->format->narrow
    calendar.month.format.wide์™€ calendar.months["stand-alone"].wide์˜ ๊ฐ’์ด ๋‹ค๋ฅด๋ฉด "standAlone" ํฌ๋งท์ƒ์„ฑ.
    LLLL: Calendar.months["stand-alone"].wide
    LLL: Calendar.months["stand-alone"].abbreviated
    LL: Calendar.months["stand-alone"].abbreviated ์—์„œ ์•ž์˜ ๋‘ ๊ธ€์ž ์ถ”์ถœ.
    L: Calendar.months["stand-alone"].narrow
    asianLangs(ko, zh, ja) ์˜ d, m, y standAlone ํ‘œ๊ธฐ๋Š”, calendar.dateTimeFormats.availableFormats์˜ d, m, y ํฌ๋งท ํ…œํ”Œ๋ฆฟ์„ ๋”ฐ๋ฅธ๋‹ค.

  • DateFmt ์—์„œ Length์— ๋”ฐ๋ฅธ ์š”์ผ ํ‘œ์‹œ : locale/ca-gregorian.json
    EEEE(full): days->format->wide
    EEE(long): days->format->abbreviated
    EE(medium): days->format->short
    E(short): days->format->narrow
    calendar.month.format.wide์™€ calendar.months["stand-alone"].wide์˜ ๊ฐ’์ด ๋‹ค๋ฅด์ง€ ๋‹ค๋ฅด๋ฉด "standAlone" ํฌ๋งท์ƒ์„ฑ.
    cccc: Calendar.days["stand-alone"].wide
    ccc: Calendar.days["stand-alone"].abbreviated
    cc: Calendar.days["stand-alone"].short
    c: Calendar.days["stand-alone"].narrow

  • timeFormat
    timeFormats->long

  • date-time order
    {time} : 0, {date} : 1

  • Date/Time Duration : locale/units.json

    • Full format : units.long์— ๋งค์นญ
    • Long/Medium format : units.short์— ๋งค์นญ
    • Short format : units.narrow์— ๋งค์นญ
    • millisecond : duration-millisecond
    • second : duration-second
    • minute: duration-minute
    • hour: duration-hour
    • day : duration-day
    • week : duration-week
    • month : duration-month
    • year :duration-year
  • percent: locale/numbers.json
    percentFormats-numberSystem ์—์„œ์˜ %์˜ ์œ„์น˜

  • Decimal Seperator, Number Grouping : locale/numbers.json
    defaultNumberingSystem": ์˜ ๊ฐ’์„ ๋จผ์ € ํ™•์ธํ•œ ํ›„์— "latnโ€ symbols-numberSystem-"" ์—์„œ์˜ decimal, group symbol ํ™•์ธํ•œ๋‹ค.
    ์˜ˆ๋ฅผ ๋“ค์–ด, fa-IR ์˜ ๊ฒฝ์šฐ, "defaultNumberingSystem": "arabext" ์ด๋ฉด, "symbols-numberSystem-latn" ์ด ์•„๋‹ˆ๋ผ, "symbols-numberSystem-arabext" ์˜ decimal, group symbol ์„ ํ™•์ธํ•ด์•ผํ•œ๋‹ค.

  • currency

    • supplemental/currencyData.json : currencyData.region ์˜ ๊ฐ’๋“ค ์ค‘์— "_from" ์˜ ๊ฐ’. :"_to"," _from" ๋กœ ๋˜์–ด์ ธ ์žˆ์œผ๋ฉด ํ•ด๋‹น currency ์‚ฌ์šฉ์€ ์ค‘์ง€๋˜๊ณ  ๋‹ค๋ฅธ ํ†ตํ™”๋กœ ๋ฐ”๋€ ๊ฒƒ.
    • symbol : en-US/currency.json : numbers.currencies
      symbol-alt-narrow์˜ ๊ฐ’์ด ์žˆ์œผ๋ฉด, ํ•ด๋‹น ๊ฐ’์ด symbol
      symbol-alt-narrow ๊ฐ’์ด ์—†์ง€๋งŒ, symbol-alt-variant ์ด ์žˆ์œผ๋ฉด, symbol-alt-variant ์ด symbol
      symbol-alt-narrow , symbol-alt-variant ๋‘˜๋‹ค ์—†์œผ๋ฉด ํ˜„์žฌ ์•„์ด๋ฆฝ์˜ ๊ฐ’์„ ์œ ์ง€.
      ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด, cldr ์˜ symbol์˜ ๊ฐ’์„ ์œ ์ง€
    • CLDR sync up ๋ฐ minus currency ๊ด€๋ จ