-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(locale): Add nepali (ne) locale (#524)
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |