-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2604 from hyurservice/add-armenian-locale
add Armenian locale
- Loading branch information
Showing
3 changed files
with
84 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,81 @@ | ||
/* Armenian locals for flatpickr */ | ||
import { CustomLocale } from "../types/locale"; | ||
import { FlatpickrFn } from "../types/instance"; | ||
|
||
const fp = | ||
typeof window !== "undefined" && window.flatpickr !== undefined | ||
? window.flatpickr | ||
: ({ | ||
l10ns: {}, | ||
} as FlatpickrFn); | ||
|
||
export const Armenian: CustomLocale = { | ||
weekdays: { | ||
shorthand: [ | ||
"Կիր", | ||
"Երկ", | ||
"Երք", | ||
"Չրք", | ||
"Հնգ", | ||
"Ուրբ", | ||
"Շբթ", | ||
], | ||
longhand: [ | ||
"Կիրակի", | ||
"Եկուշաբթի", | ||
"Երեքշաբթի", | ||
"Չորեքշաբթի", | ||
"Հինգշաբթի", | ||
"Ուրբաթ", | ||
"Շաբաթ", | ||
], | ||
}, | ||
months: { | ||
shorthand: [ | ||
"Հնվ", | ||
"Փտր", | ||
"Մար", | ||
"Ապր", | ||
"Մայ", | ||
"Հնս", | ||
"Հլս", | ||
"Օգս", | ||
"Սեպ", | ||
"Հոկ", | ||
"Նմբ", | ||
"Դեկ", | ||
], | ||
longhand: [ | ||
"Հունվար", | ||
"Փետրվար", | ||
"Մարտ", | ||
"Ապրիլ", | ||
"Մայիս", | ||
"Հունիս", | ||
"Հուլիս", | ||
"Օգոստոս", | ||
"Սեպտեմբեր", | ||
"Հոկտեմբեր", | ||
"Նոյեմբեր", | ||
"Դեկտեմբեր", | ||
], | ||
}, | ||
firstDayOfWeek: 1, | ||
ordinal: function () { | ||
return ""; | ||
}, | ||
rangeSeparator: " — ", | ||
weekAbbreviation: "ՇԲՏ", | ||
scrollTitle: "Ոլորեք՝ մեծացնելու համար", | ||
toggleTitle: "Սեղմեք՝ փոխելու համար", | ||
amPM: ["ՄԿ", "ԿՀ"], | ||
yearAriaLabel: "Տարի", | ||
monthAriaLabel: "Ամիս", | ||
hourAriaLabel: "Ժամ", | ||
minuteAriaLabel: "Րոպե", | ||
time_24hr: true, | ||
}; | ||
|
||
fp.l10ns.hy = Armenian; | ||
|
||
export default fp.l10ns; |
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
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 |
---|---|---|
|
@@ -139,6 +139,7 @@ export type key = | |
| "hi" | ||
| "hr" | ||
| "hu" | ||
| "hy" | ||
| "id" | ||
| "is" | ||
| "it" | ||
|