Files
myspeed/client/src/common/components/Dropdown/utils/options.js
2022-11-20 18:33:51 +01:00

31 lines
809 B
JavaScript

import {t} from "i18next";
export const timeOptions = () => ({
1: t("options.time.24hours"),
2: t("options.time.2days"),
3: t("options.time.7days"),
4: t("options.time.30days")
});
export const levelOptions = () => ({
"none": t("options.level.no_access"),
"read": t("options.level.read_access")
});
export const selectOptions = () => ({
"* * * * *": t("options.cron.continuous"),
"0,30 * * * *": t("options.cron.frequent"),
"0 * * * *": t("options.cron.default"),
"0 0,3,6,9,12,15,18,21 * * *": t("options.cron.rare"),
"0 0,6,12,18 * * *": t("options.cron.really_rare")
});
export const languageOptions = {
"en": "English",
"de": "Deutsch"
}
export const exportOptions = () => ({
json: t("options.export.json"),
csv: t("options.export.csv")
});