From dcbf1708400624addfbddbc71e0f6a9ac15fa961 Mon Sep 17 00:00:00 2001 From: anxogcd <79111201+anxogcd@users.noreply.github.com> Date: Tue, 1 Mar 2022 16:00:09 +0100 Subject: [PATCH] fix: Add relative time to Galician (gl) and fix ordinals (#1800) --- src/locale/gl.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/locale/gl.js b/src/locale/gl.js index 77f2dbb66..64d76b07d 100644 --- a/src/locale/gl.js +++ b/src/locale/gl.js @@ -9,7 +9,7 @@ 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', @@ -17,6 +17,21 @@ const locale = { 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' } }