Skip to content

Commit

Permalink
fix: Add relative time to Galician (gl) and fix ordinals (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxogcd committed Mar 1, 2022
1 parent efd3904 commit dcbf170
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/locale/gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,29 @@ const locale = {
weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
ordinal: n => n,
ordinal: n => `${n}º`,
formats: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D [de] MMMM [de] YYYY',
LLL: 'D [de] MMMM [de] YYYY H:mm',
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
},
relativeTime: {
future: 'en %s',
past: 'fai %s',
s: 'uns segundos',
m: 'un minuto',
mm: '%d minutos',
h: 'unha hora',
hh: '%d horas',
d: 'un día',
dd: '%d días',
M: 'un mes',
MM: '%d meses',
y: 'un ano',
yy: '%d anos'
}
}

Expand Down

0 comments on commit dcbf170

Please sign in to comment.