mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-20 02:00:14 +00:00
refactor: enum i18n
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { TFunction } from "i18next"
|
||||
import i18n from "@/lib/i18n"
|
||||
|
||||
export const triggerModes = (t: TFunction<"translation", undefined>) => ({
|
||||
0: t("Always"),
|
||||
1: t("Once"),
|
||||
})
|
||||
export const triggerModes: Record<number, string> = {
|
||||
0: i18n.t("Always"),
|
||||
1: i18n.t("Once"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user