Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(locale): add months, days and few other minor strings to es #1320

Merged
merged 7 commits into from Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/locales/es/address/city_prefix.ts
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
@@ -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
@@ -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
@@ -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
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
@@ -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
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
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
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
Expand Up @@ -15,4 +15,8 @@ export default [
'Carles',
'Jordi',
'Manuel',
'Pío',
'Pablo',
'Juan Ramón',
'Hermenegildo',
];