Skip to content

Commit ebb4e2c

Browse files
rasputinoPablo León Manzano
andauthored
feat(locale): add months, days and few other minor strings to es (#1320)
Co-authored-by: Pablo León Manzano <manzano@duck.com> Co-authored-by: Pablo León Manzano <p.leon@dipualba.es>
1 parent cc15d9e commit ebb4e2c

10 files changed

Lines changed: 88 additions & 1 deletion

File tree

src/locales/es/address/city_prefix.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,5 @@ export default [
128128
'Reus',
129129
'Calahorra',
130130
'Inca',
131+
'Aýna',
131132
];

src/locales/es/date/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import type { DateDefinitions } from '../../..';
6+
import month from './month';
7+
import weekday from './weekday';
8+
9+
const date: DateDefinitions = {
10+
month,
11+
weekday,
12+
};
13+
14+
export default date;

src/locales/es/date/month.ts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Sources: https://www.unicode.org/cldr/cldr-aux/charts/28/summary/es.html and https://www.wikilengua.org/index.php/Abreviaciones_en_fechas
2+
export default {
3+
wide: [
4+
'enero',
5+
'febrero',
6+
'marzo',
7+
'abril',
8+
'mayo',
9+
'junio',
10+
'julio',
11+
'agosto',
12+
'septiembre',
13+
'octubre',
14+
'noviembre',
15+
'diciembre',
16+
],
17+
abbr: [
18+
'ene',
19+
'feb',
20+
'mar',
21+
'abr',
22+
'may',
23+
'jun',
24+
'jul',
25+
'ago',
26+
'sep',
27+
'oct',
28+
'nov',
29+
'dic',
30+
],
31+
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
32+
// It is used to specify a word in context, which may differ from a stand-alone word
33+
abbr_context: [
34+
'en.',
35+
'febr.',
36+
'mzo.',
37+
'abr.',
38+
'my.',
39+
'jun.',
40+
'jul.',
41+
'ag.',
42+
'sept.',
43+
'oct.',
44+
'nov.',
45+
'dic.',
46+
],
47+
};

src/locales/es/date/weekday.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Sources: https://www.unicode.org/cldr/cldr-aux/charts/28/summary/es.html and https://www.wikilengua.org/index.php/Abreviaciones_en_fechas
2+
export default {
3+
wide: [
4+
'domingo',
5+
'lunes',
6+
'martes',
7+
'miércoles',
8+
'jueves',
9+
'viernes',
10+
'sábado',
11+
],
12+
abbr: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', 'sáb'],
13+
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
14+
// It is used to specify a word in context, which may differ from a stand-alone word
15+
abbr_context: ['dom.', 'lun.', 'mart.', 'miérc.', 'juev.', 'vier.', 'sáb.'],
16+
};

src/locales/es/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import cell_phone from './cell_phone';
88
import color from './color';
99
import commerce from './commerce';
1010
import company from './company';
11+
import date from './date';
1112
import internet from './internet';
1213
import name_ from './name';
1314
import phone_number from './phone_number';
@@ -19,6 +20,7 @@ const es: LocaleDefinition = {
1920
color,
2021
commerce,
2122
company,
23+
date,
2224
internet,
2325
name: name_,
2426
phone_number,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default ['com', 'es', 'info', 'com.es', 'org'];
1+
export default ['com', 'es', 'info', 'com.es', 'org', 'eus', 'cat'];

src/locales/es/name/female_first_name.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ export default [
1010
'Matilde',
1111
'Jennifer',
1212
'Roser',
13+
'María de los Ángeles',
1314
];

src/locales/es/name/first_name.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export default [
171171
'Margarita',
172172
'María',
173173
'María del Carmen',
174+
'María de los Ángeles',
174175
'María Cristina',
175176
'María Elena',
176177
'María Eugenia',

src/locales/es/name/last_name.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export default [
209209
'Espinal',
210210
'Espino',
211211
'Espinosa',
212+
'Espinosa de los Monteros',
212213
'Espinoza',
213214
'Esquibel',
214215
'Esquivel',

src/locales/es/name/male_first_name.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ export default [
1515
'Carles',
1616
'Jordi',
1717
'Manuel',
18+
'Pío',
19+
'Pablo',
20+
'Juan Ramón',
21+
'Hermenegildo',
1822
];

0 commit comments

Comments
 (0)