From a461846398c41c6becf31b1342c8ab1b14cad0b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pablo=20Le=C3=B3n=20Manzano?=
Date: Wed, 31 Aug 2022 09:58:42 +0200
Subject: [PATCH] feat(locale): new date dataset for spanish
---
src/locales/es/date/index.ts | 14 ++++++++
src/locales/es/date/month.ts | 63 ++++++++++++++++++++++++++++++++++
src/locales/es/date/weekday.ts | 27 +++++++++++++++
src/locales/es/index.ts | 2 ++
4 files changed, 106 insertions(+)
create mode 100644 src/locales/es/date/index.ts
create mode 100644 src/locales/es/date/month.ts
create mode 100644 src/locales/es/date/weekday.ts
diff --git a/src/locales/es/date/index.ts b/src/locales/es/date/index.ts
new file mode 100644
index 00000000000..cd296b42a45
--- /dev/null
+++ b/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;
diff --git a/src/locales/es/date/month.ts b/src/locales/es/date/month.ts
new file mode 100644
index 00000000000..a65e09e2468
--- /dev/null
+++ b/src/locales/es/date/month.ts
@@ -0,0 +1,63 @@
+// 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',
+ ],
+ // Property "wide_context" is optional, if not set then "wide" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ wide_context: [
+ '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.',
+ ],
+};
diff --git a/src/locales/es/date/weekday.ts b/src/locales/es/date/weekday.ts
new file mode 100644
index 00000000000..a0d3ef098aa
--- /dev/null
+++ b/src/locales/es/date/weekday.ts
@@ -0,0 +1,27 @@
+// 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',
+ ],
+ // Property "wide_context" is optional, if not set then "wide" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ wide_context: [
+ '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.'],
+};
diff --git a/src/locales/es/index.ts b/src/locales/es/index.ts
index b97f68a245d..a4161d4ed6e 100644
--- a/src/locales/es/index.ts
+++ b/src/locales/es/index.ts
@@ -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';
@@ -19,6 +20,7 @@ const es: LocaleDefinition = {
color,
commerce,
company,
+ date,
internet,
name: name_,
phone_number,