Skip to content

Commit d311f13

Browse files
committed
Merge pull request #311 from gocardless/null-i18n-seejohnrun
Add i18n
2 parents 6868b2c + 5c6cf58 commit d311f13

33 files changed

+1084
-105
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
source 'https://rubygems.org'
22

3-
gemspec
3+
gemspec

config/locales/en.yml

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
en:
2+
ice_cube:
3+
pieces_connector: ' / '
4+
not: 'not %{target}'
5+
not_on: 'not on %{target}'
6+
date:
7+
formats:
8+
default: '%B %-d, %Y'
9+
month_names:
10+
-
11+
- January
12+
- February
13+
- March
14+
- April
15+
- May
16+
- June
17+
- July
18+
- August
19+
- September
20+
- October
21+
- November
22+
- December
23+
day_names:
24+
- Sunday
25+
- Monday
26+
- Tuesday
27+
- Wednesday
28+
- Thursday
29+
- Friday
30+
- Saturday
31+
times:
32+
other: '%{count} times'
33+
one: '%{count} time'
34+
until: 'until %{date}'
35+
days_of_week: '%{segments} %{day}'
36+
days_of_month:
37+
other: '%{segments} days of the month'
38+
one: '%{segments} day of the month'
39+
days_of_year:
40+
other: '%{segments} days of the year'
41+
one: '%{segments} day of the year'
42+
at_hours_of_the_day:
43+
other: on the %{segments} hours of the day
44+
one: on the %{segments} hour of the day
45+
on_minutes_of_hour:
46+
other: on the %{segments} minutes of the hour
47+
one: on the %{segments} minute of the hour
48+
at_seconds_of_minute:
49+
other: at the %{segments} seconds
50+
one: at the %{segments} second
51+
on_seconds_of_minute:
52+
other: on the %{segments} seconds of the minute
53+
one: on the %{segments} second of the minute
54+
each_second:
55+
one: Secondly
56+
other: Every %{count} seconds
57+
each_minute:
58+
one: Minutely
59+
other: Every %{count} minutes
60+
each_hour:
61+
one: Hourly
62+
other: Every %{count} hours
63+
each_day:
64+
one: Daily
65+
other: Every %{count} days
66+
each_week:
67+
one: Weekly
68+
other: Every %{count} weeks
69+
each_month:
70+
one: Monthly
71+
other: Every %{count} months
72+
each_year:
73+
one: Yearly
74+
other: Every %{count} years
75+
'on': on the %{sentence}
76+
in: 'in %{target}'
77+
integer:
78+
negative: '%{ordinal} to last'
79+
literal_ordinals:
80+
-1: last
81+
-2: 2nd to last
82+
ordinal: '%{number}%{ordinal}'
83+
ordinals:
84+
default: th
85+
1: st
86+
2: nd
87+
3: rd
88+
11: th
89+
12: th
90+
13: th
91+
on_weekends: on Weekends
92+
on_weekdays: on Weekdays
93+
days_on:
94+
- Sundays
95+
- Mondays
96+
- Tuesdays
97+
- Wednesdays
98+
- Thursdays
99+
- Fridays
100+
- Saturdays
101+
on_days: on %{days}
102+
array:
103+
last_word_connector: ', and '
104+
two_words_connector: ' and '
105+
words_connector: ', '
106+
string:
107+
format:
108+
day: '%{rest} %{current}'
109+
day_of_week: '%{rest} %{current}'
110+
day_of_month: '%{rest} %{current}'
111+
day_of_year: '%{rest} %{current}'
112+
hour_of_day: '%{rest} %{current}'
113+
minute_of_hour: '%{rest} %{current}'
114+
until: '%{rest} %{current}'
115+
count: '%{rest} %{current}'
116+
default: '%{rest} %{current}'
117+
118+
date:
119+
abbr_day_names:
120+
- Sun
121+
- Mon
122+
- Tue
123+
- Wed
124+
- Thu
125+
- Fri
126+
- Sat
127+
abbr_month_names:
128+
-
129+
- Jan
130+
- Feb
131+
- Mar
132+
- Apr
133+
- May
134+
- Jun
135+
- Jul
136+
- Aug
137+
- Sep
138+
- Oct
139+
- Nov
140+
- Dec
141+
day_names:
142+
- Sunday
143+
- Monday
144+
- Tuesday
145+
- Wednesday
146+
- Thursday
147+
- Friday
148+
- Saturday
149+
formats:
150+
default: "%Y-%m-%d"
151+
long: "%B %d, %Y"
152+
short: "%b %d"
153+
month_names:
154+
-
155+
- January
156+
- February
157+
- March
158+
- April
159+
- May
160+
- June
161+
- July
162+
- August
163+
- September
164+
- October
165+
- November
166+
- December
167+
order:
168+
- :year
169+
- :month
170+
- :day
171+
172+
time:
173+
am: am
174+
formats:
175+
default: "%a, %d %b %Y %H:%M:%S %z"
176+
long: "%B %d, %Y %H:%M"
177+
short: "%d %b %H:%M"
178+
pm: pm

config/locales/es.yml

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
es:
2+
ice_cube:
3+
pieces_connector: ', '
4+
not: 'excepto %{target}'
5+
not_on: 'excepto el %{target}'
6+
date:
7+
formats:
8+
default: '%-d de %B de %Y'
9+
month_names:
10+
-
11+
- Enero
12+
- Febrero
13+
- Marzo
14+
- Abril
15+
- Mayo
16+
- Junio
17+
- Julio
18+
- Agosto
19+
- Septiembre
20+
- Octubre
21+
- Noviembre
22+
- Diciembre
23+
day_names:
24+
- Domingo
25+
- Lunes
26+
- Martes
27+
- Miércoles
28+
- Jueves
29+
- Viernes
30+
- Sábado
31+
times:
32+
other: '%{count} veces'
33+
one: '%{count} vez'
34+
until: 'hasta el %{date}'
35+
days_of_week: '%{segments} %{day}'
36+
days_of_month:
37+
other: 'los días %{segments} del mes'
38+
one: 'el día %{segments} del mes'
39+
days_of_year:
40+
one: 'el día %{segments}'
41+
other: 'los días %{segments}'
42+
at_hours_of_the_day:
43+
one: 'en la hora %{segments}'
44+
other: 'en las horas %{segments}'
45+
on_minutes_of_hour:
46+
one: 'en el minuto %{segments}'
47+
other: 'en los minutos %{segments}'
48+
at_seconds_of_minute:
49+
one: 'en el segundo %{segments}'
50+
other: 'en los segundos %{segments}'
51+
on_seconds_of_minute:
52+
one: 'en el segundo %{segments} del minuto'
53+
other: 'en los segundos %{segments} del minuto'
54+
on_days: '%{days}'
55+
each_second:
56+
one: Cada segundo
57+
other: 'Cada %{count} segundos'
58+
each_minute:
59+
one: Cada minuto
60+
other: 'Cada %{count} minutos'
61+
each_hour:
62+
one: Cada hora
63+
other: 'Cada %{count} horas'
64+
each_day:
65+
one: Diariamente
66+
other: 'Cada %{count} días'
67+
each_week:
68+
one: Semanalmente
69+
other: 'Cada %{count} semanas'
70+
each_month:
71+
one: Mensualmente
72+
other: 'Cada %{count} meses'
73+
each_year:
74+
one: Anualmente
75+
other: 'Cada %{count} años'
76+
'on': 'en %{sentence}'
77+
in: 'en %{target}'
78+
integer:
79+
negative: '%{ordinal} por la cola'
80+
literal_ordinals:
81+
-1: el último
82+
-2: el penúltimo
83+
ordinal: '%{number}%{ordinal}'
84+
ordinals:
85+
default: º
86+
1: º
87+
2: º
88+
3: º
89+
11: º
90+
12: º
91+
13: º
92+
on_weekends: en fin de semana
93+
on_weekdays: en días laborables
94+
days_on:
95+
- los domingos
96+
- los lunes
97+
- los martes
98+
- los miércoles
99+
- los jueves
100+
- los viernes
101+
- los sábados
102+
on_days: '%{days}'
103+
array:
104+
last_word_connector: ' y '
105+
two_words_connector: ' y '
106+
words_connector: ', '
107+
string:
108+
format:
109+
day: '%{rest} %{current}'
110+
day_of_week: '%{rest} %{current}'
111+
day_of_month: '%{rest} %{current}'
112+
day_of_year: '%{rest} %{current}'
113+
hour_of_day: '%{rest} %{current}'
114+
minute_of_hour: '%{rest} %{current}'
115+
until: '%{rest} %{current}'
116+
count: '%{rest} %{current}'
117+
default: '%{rest} %{current}'
118+
119+
date:
120+
day_names:
121+
- Domingo
122+
- Lunes
123+
- Martes
124+
- Miércoles
125+
- Jueves
126+
- Viernes
127+
- Sábado
128+
abbr_day_names:
129+
- Dom
130+
- Lun
131+
- Mar
132+
- Mie
133+
- Jue
134+
- Vie
135+
- Sab
136+
# Don't forget the nil at the beginning; there's no such thing as a 0th month
137+
month_names:
138+
-
139+
- Enero
140+
- Febrero
141+
- Marzo
142+
- Abril
143+
- Mayo
144+
- Junio
145+
- Julio
146+
- Agosto
147+
- Septiembre
148+
- Octubre
149+
- Noviembre
150+
- Diciembre
151+
abbr_month_names:
152+
-
153+
- Ene
154+
- Feb
155+
- Mar
156+
- Abr
157+
- May
158+
- Jun
159+
- Jul
160+
- Ago
161+
- Sep
162+
- Oct
163+
- Nov
164+
- Dic
165+
formats:
166+
default: '%d/%m/%Y'
167+
long: '%d de %B de %Y'
168+
short: '%d de %B'
169+
170+
time:
171+
formats:
172+
default: "%A, %d de %B de %Y %H:%M:%S %z"
173+
short: "%d de %b %H:%M"
174+
long: "%d de %B de %Y a las %H:%M"
175+
am: "am"
176+
pm: "pm"

0 commit comments

Comments
 (0)