CLDR - iLib-js/iLib GitHub Wiki
CLDR
-
iLib ์ ํ์ฌ CLDR 30 ๋ฒ์ ์ผ๋ก Sync Up ๋์ด์๋ค.
-
svn checkout http://www.unicode.org/repos/cldr-aux/json/
-
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 ๊ด๋ จ