-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add Amharic (am) locale (#1046)
* Add Amharic locale * Fix linting issue in am locale
- Loading branch information
1 parent
638fd39
commit cdc49a1
Showing
1 changed file
with
41 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,41 @@ | ||
// Amharic [am] | ||
import dayjs from 'dayjs' | ||
|
||
const locale = { | ||
name: 'am', | ||
weekdays: 'እሑድ_ሰኞ_ማክሰኞ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ'.split('_'), | ||
weekdaysShort: 'እሑድ_ሰኞ_ማክሰ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ'.split('_'), | ||
weekdaysMin: 'እሑ_ሰኞ_ማክ_ረቡ_ሐሙ_አር_ቅዳ'.split('_'), | ||
months: 'ጃንዋሪ_ፌብሯሪ_ማርች_ኤፕሪል_ሜይ_ጁን_ጁላይ_ኦገስት_ሴፕቴምበር_ኦክቶበር_ኖቬምበር_ዲሴምበር'.split('_'), | ||
monthsShort: 'ጃንዋ_ፌብሯ_ማርች_ኤፕሪ_ሜይ_ጁን_ጁላይ_ኦገስ_ሴፕቴ_ኦክቶ_ኖቬም_ዲሴም'.split('_'), | ||
weekStart: 1, | ||
yearStart: 4, | ||
relativeTime: { | ||
future: 'በ%s', | ||
past: '%s በፊት', | ||
s: 'ጥቂት ሰከንዶች', | ||
m: 'አንድ ደቂቃ', | ||
mm: '%d ደቂቃዎች', | ||
h: 'አንድ ሰዓት', | ||
hh: '%d ሰዓታት', | ||
d: 'አንድ ቀን', | ||
dd: '%d ቀናት', | ||
M: 'አንድ ወር', | ||
MM: '%d ወራት', | ||
y: 'አንድ ዓመት', | ||
yy: '%d ዓመታት' | ||
}, | ||
formats: { | ||
LT: 'HH:mm', | ||
LTS: 'HH:mm:ss', | ||
L: 'DD/MM/YYYY', | ||
LL: 'MMMM D ፣ YYYY', | ||
LLL: 'MMMM D ፣ YYYY HH:mm', | ||
LLLL: 'dddd ፣ MMMM D ፣ YYYY HH:mm' | ||
}, | ||
ordinal: n => `${n}ኛ` | ||
} | ||
|
||
dayjs.locale(locale, null, true) | ||
|
||
export default locale |