mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-20 10:10:14 +00:00
fix: Duplicate template options (#51)
* fix: Duplicate template options * fix: form option i18n text
This commit is contained in:
+10
-10
@@ -1,12 +1,12 @@
|
||||
import i18next from "i18next"
|
||||
import { TFunction } from "i18next"
|
||||
|
||||
export const cronTypes: Record<number, string> = {
|
||||
0: i18next.t("Scheduled"),
|
||||
1: i18next.t("Trigger"),
|
||||
}
|
||||
export const cronTypes = (t: TFunction<"translation", undefined>) => ({
|
||||
0: t("Scheduled"),
|
||||
1: t("Trigger"),
|
||||
})
|
||||
|
||||
export const cronCoverageTypes: Record<number, string> = {
|
||||
0: i18next.t("Coverages.Only"),
|
||||
1: i18next.t("Coverages.Excludes"),
|
||||
2: i18next.t("Coverages.Alarmed"),
|
||||
}
|
||||
export const cronCoverageTypes = (t: TFunction<"translation", undefined>) => ({
|
||||
0: t("Coverages.Only"),
|
||||
1: t("Coverages.Excludes"),
|
||||
2: t("Coverages.Alarmed"),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user