Skip to content

Commit

Permalink
Merge pull request #336 from kukac7/master
Browse files Browse the repository at this point in the history
add hungarian locale
  • Loading branch information
iamkun committed Sep 25, 2018
2 parents 1d66f74 + add66ca commit 9cbcc51
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/locale/hu.js
@@ -0,0 +1,30 @@
import dayjs from 'dayjs'

const locale = {
name: 'hu',
weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
ordinal: n => `${n}.`,
relativeTime: {
future: '%s múlva',
past: '%s',
s: 'néhány másodperc',
m: 'egy perc',
mm: '%d perc',
h: 'egy óra',
hh: '%d óra',
d: 'egy nap',
dd: '%d nap',
M: 'egy hónap',
MM: '%d hónap',
y: 'egy éve',
yy: '%d év'
}
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit 9cbcc51

Please sign in to comment.