Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -1,10 +1,10 @@
|
||||
import { de, enUS } from "date-fns/locale";
|
||||
import { de, enUS, hu, pl, ru, uk } from "date-fns/locale";
|
||||
|
||||
type WeekStartsOn = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
||||
|
||||
export function getDateFnsLocale(language?: string) {
|
||||
const locale = language?.toLowerCase().split("-")[0];
|
||||
return locale === "en" ? enUS : de;
|
||||
return { de, en: enUS, hu, pl, ru, uk }[locale ?? "de"] ?? de;
|
||||
}
|
||||
|
||||
export function getLocaleWeekStartsOn(language?: string): WeekStartsOn {
|
||||
|
||||
Reference in new issue
Block a user