Skip to content

Commit

Permalink
feat(locale): add months, days and few other minor strings to es (#1320)
Browse files Browse the repository at this point in the history
Co-authored-by: Pablo León Manzano <manzano@duck.com>
Co-authored-by: Pablo León Manzano <p.leon@dipualba.es>
  • Loading branch information
3 people committed Aug 31, 2022
1 parent cc15d9e commit ebb4e2c
Show file tree
Hide file tree
Showing 10 changed files with 88 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/locales/es/address/city_prefix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,5 @@ export default [
'Reus',
'Calahorra',
'Inca',
'Aýna',
];
14 changes: 14 additions & 0 deletions src/locales/es/date/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { DateDefinitions } from '../../..';
import month from './month';
import weekday from './weekday';

const date: DateDefinitions = {
month,
weekday,
};

export default date;
47 changes: 47 additions & 0 deletions src/locales/es/date/month.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Sources: https://www.unicode.org/cldr/cldr-aux/charts/28/summary/es.html and https://www.wikilengua.org/index.php/Abreviaciones_en_fechas
export default {
wide: [
'enero',
'febrero',
'marzo',
'abril',
'mayo',
'junio',
'julio',
'agosto',
'septiembre',
'octubre',
'noviembre',
'diciembre',
],
abbr: [
'ene',
'feb',
'mar',
'abr',
'may',
'jun',
'jul',
'ago',
'sep',
'oct',
'nov',
'dic',
],
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
abbr_context: [
'en.',
'febr.',
'mzo.',
'abr.',
'my.',
'jun.',
'jul.',
'ag.',
'sept.',
'oct.',
'nov.',
'dic.',
],
};
16 changes: 16 additions & 0 deletions src/locales/es/date/weekday.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Sources: https://www.unicode.org/cldr/cldr-aux/charts/28/summary/es.html and https://www.wikilengua.org/index.php/Abreviaciones_en_fechas
export default {
wide: [
'domingo',
'lunes',
'martes',
'miércoles',
'jueves',
'viernes',
'sábado',
],
abbr: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', 'sáb'],
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
abbr_context: ['dom.', 'lun.', 'mart.', 'miérc.', 'juev.', 'vier.', 'sáb.'],
};
2 changes: 2 additions & 0 deletions src/locales/es/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import cell_phone from './cell_phone';
import color from './color';
import commerce from './commerce';
import company from './company';
import date from './date';
import internet from './internet';
import name_ from './name';
import phone_number from './phone_number';
Expand All @@ -19,6 +20,7 @@ const es: LocaleDefinition = {
color,
commerce,
company,
date,
internet,
name: name_,
phone_number,
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/internet/domain_suffix.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default ['com', 'es', 'info', 'com.es', 'org'];
export default ['com', 'es', 'info', 'com.es', 'org', 'eus', 'cat'];
1 change: 1 addition & 0 deletions src/locales/es/name/female_first_name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export default [
'Matilde',
'Jennifer',
'Roser',
'María de los Ángeles',
];
1 change: 1 addition & 0 deletions src/locales/es/name/first_name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default [
'Margarita',
'María',
'María del Carmen',
'María de los Ángeles',
'María Cristina',
'María Elena',
'María Eugenia',
Expand Down
1 change: 1 addition & 0 deletions src/locales/es/name/last_name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export default [
'Espinal',
'Espino',
'Espinosa',
'Espinosa de los Monteros',
'Espinoza',
'Esquibel',
'Esquivel',
Expand Down
4 changes: 4 additions & 0 deletions src/locales/es/name/male_first_name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ export default [
'Carles',
'Jordi',
'Manuel',
'Pío',
'Pablo',
'Juan Ramón',
'Hermenegildo',
];

0 comments on commit ebb4e2c

Please sign in to comment.