From a9ca8dcbbd0964c5b9abb4e8a2d620c983cf091a Mon Sep 17 00:00:00 2001 From: Guvanch Nurgeldiyev <16291863+gnurgeldiyev@users.noreply.github.com> Date: Sun, 3 May 2020 16:05:26 +0300 Subject: [PATCH] fix: Add Turkmen (tk) locale (#893) Co-authored-by: Guvanch Nurgeldiyev --- src/locale/tk.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/locale/tk.js diff --git a/src/locale/tk.js b/src/locale/tk.js new file mode 100644 index 000000000..268cc8bb0 --- /dev/null +++ b/src/locale/tk.js @@ -0,0 +1,40 @@ +// Turkmen [tk] +import dayjs from 'dayjs' + +const locale = { + name: 'tk', + weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split('_'), + weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'), + weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'), + months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split('_'), + monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'), + weekStart: 1, + formats: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + relativeTime: { + future: '%s soň', + past: '%s öň', + s: 'birnäçe sekunt', + m: 'bir minut', + mm: '%d minut', + h: 'bir sagat', + hh: '%d sagat', + d: 'bir gün', + dd: '%d gün', + M: 'bir aý', + MM: '%d aý', + y: 'bir ýyl', + yy: '%d ýyl' + }, + ordinal: n => `${n}.` +} + +dayjs.locale(locale, null, true) + +export default locale