forked from ruby-i18n/ruby-cldr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
68 lines (57 loc) · 1.23 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
- during export resolve links if :merge => true
- make sense of timezone data
- hook into Rails' select_month and DateTime helpers
extract:
- territoryContainment (groups territories)
- languageData (maps languages/scripts to territories)
- territoryInfo (?)
- calendarData
- weekData
what do the following tags in supplementalMetadata mean?
- variable
- defaultContent
Instead of exporting YAML, maybe by default export Ruby classes:
module Cldr
module Data
class De::Numbers
def currency_format
"#,##0.00 ¤"
end
def symbols
{ ... }
end
end
class De::Calendars::Gregorian
def months(context, type)
case context
when :format
case type
when :wide
{ :sat => "Samstag", :sun => "Sonntag", :mon => "Montag", ...}
end
when :'stand-alone'
case type
when :narrow
{ ... }
else
months(:format, :wide)
end
end
end
def date_format(type)
case type
when :full
"EEEE, d. MMMM y"
when :medium
"dd.MM.yyyy"
else
date_format(:medium)
end
end
end
class DeAt::Numbers < De::Numbers
end
class DeAt::Calendars::Gregorian < De::Calendars::Gregorian
end
end
end