Skip to content

Commit

Permalink
fix(locale): Add nepali (ne) locale (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore authored and iamkun committed Mar 9, 2019
1 parent 600d547 commit bdbec01
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/locale/ne.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import dayjs from 'dayjs'

const locale = {
name: 'ne',
weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मे_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
relativeTime: {
future: '%s पछि',
past: '%s अघि',
s: 'सेकेन्ड',
m: 'एक मिनेट',
mm: '%d मिनेट',
h: 'घन्टा',
hh: '%d घन्टा',
d: 'एक दिन',
dd: '%d दिन',
M: 'एक महिना',
MM: '%d महिना',
y: 'एक वर्ष',
yy: '%d वर्ष'
},
ordinal: n => `${n}`.replace(/\d/g, i => '०१२३४५६७८९'[i])
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit bdbec01

Please sign in to comment.