add number and date formats for locale es

This commit is contained in:
Moriz Wahl 2022-08-10 15:57:13 +02:00
parent 6ee5734499
commit 6d2cbfbab1

View File

@ -65,6 +65,19 @@ const numberFormats = {
useGrouping: false,
},
},
es: {
decimal: {
style: 'decimal',
minimumFractionDigits: 2,
maximumFractionDigits: 2,
},
ungroupedDecimal: {
style: 'decimal',
minimumFractionDigits: 2,
maximumFractionDigits: 2,
useGrouping: false,
},
},
}
const dateTimeFormats = {
@ -124,6 +137,34 @@ const dateTimeFormats = {
year: 'numeric',
},
},
es: {
short: {
day: 'numeric',
month: 'numeric',
year: 'numeric',
},
long: {
day: 'numeric',
month: 'long',
year: 'numeric',
weekday: 'long',
hour: 'numeric',
minute: 'numeric',
},
monthShort: {
month: 'short',
},
month: {
month: 'long',
},
year: {
year: 'numeric',
},
monthAndYear: {
month: 'long',
year: 'numeric',
},
},
}
export default new VueI18n({