-
Notifications
You must be signed in to change notification settings - Fork 6
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 관련