mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-04 12:40:08 +00:00
feat(I18n): Add multiple languages (zh-CN/zh-TW/en/it) (#8)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import i18next from "i18next";
|
||||
export const triggerModes: Record<number, string> = {
|
||||
0: "Always",
|
||||
1: "Once",
|
||||
0: i18next.t("Always"),
|
||||
1: i18next.t("Once"),
|
||||
|
||||
}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import i18next from "i18next";
|
||||
export const cronTypes: Record<number, string> = {
|
||||
0: "Scheduled",
|
||||
1: "Trigger",
|
||||
0: i18next.t("Scheduled"),
|
||||
1: i18next.t("Trigger"),
|
||||
}
|
||||
|
||||
export const cronCoverageTypes: Record<number, string> = {
|
||||
0: "Only specific servers",
|
||||
1: "All excludes specific servers",
|
||||
2: "The alarmed servers"
|
||||
0: i18next.t("Coverages.Only"),
|
||||
1: i18next.t("Coverages.Excludes"),
|
||||
2: i18next.t("Coverages.Alarmed"),
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import i18next from "i18next";
|
||||
export const serviceTypes: Record<number, string> = {
|
||||
1: "HTTP GET",
|
||||
2: "ICMP Ping",
|
||||
@@ -5,6 +6,6 @@ export const serviceTypes: Record<number, string> = {
|
||||
}
|
||||
|
||||
export const serviceCoverageTypes: Record<number, string> = {
|
||||
0: "All excludes specific servers",
|
||||
1: "Only specific servers",
|
||||
0: i18next.t("Coverages.Excludes"),
|
||||
1: i18next.t("Coverages.Only"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user