forked from flatpickr/flatpickr
-
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.
add Romansh (Swiss) localization (flatpickr#2980)
- Loading branch information
1 parent
548330e
commit b5cec6c
Showing
3 changed files
with
77 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
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,74 @@ | ||
/* Romansh (Swiss) 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 Romansh: CustomLocale = { | ||
weekdays: { | ||
shorthand: ["Du", "Gli", "Ma", "Me", "Gie", "Ve", "So"], | ||
longhand: [ | ||
"Dumengia", | ||
"Glindesdi", | ||
"Mardi", | ||
"Mesemna", | ||
"Gievgia", | ||
"Venderdi", | ||
"Sonda", | ||
], | ||
}, | ||
months: { | ||
shorthand: [ | ||
"Schan", | ||
"Favr", | ||
"Mars", | ||
"Avr", | ||
"Matg", | ||
"Zercl", | ||
"Fan", | ||
"Avust", | ||
"Sett", | ||
"Oct", | ||
"Nov", | ||
"Dec", | ||
], | ||
longhand: [ | ||
"Schaner", | ||
"Favrer", | ||
"Mars", | ||
"Avrigl", | ||
"Matg", | ||
"Zercladur", | ||
"Fanadur", | ||
"Avust", | ||
"Settember", | ||
"October", | ||
"November", | ||
"December", | ||
], | ||
}, | ||
|
||
firstDayOfWeek: 1, | ||
hourAriaLabel: "Ura", | ||
minuteAriaLabel: "Minuta", | ||
monthAriaLabel: "Mea", | ||
rangeSeparator: " cun ", | ||
scrollTitle: "Scurra per incremar", | ||
time_24hr: true, | ||
toggleTitle: "Chasch cliccar per commutar", | ||
weekAbbreviation: "Em", | ||
yearAriaLabel: "Onn", | ||
|
||
ordinal: () => { | ||
return ""; | ||
}, | ||
}; | ||
|
||
fp.l10ns.rm = Romansh; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,6 +161,7 @@ export type key = | |
| "pa" | ||
| "pl" | ||
| "pt" | ||
| "rm" | ||
| "ro" | ||
| "ru" | ||
| "si" | ||
|