diff --git a/frontend/src/lib/i18n/de/index.ts b/frontend/src/lib/i18n/de/index.ts index c3b027bf..8e61a4af 100644 --- a/frontend/src/lib/i18n/de/index.ts +++ b/frontend/src/lib/i18n/de/index.ts @@ -64,8 +64,13 @@ const de = { link: 'Link', link_desc: 'Macht Ihren Gerätenamen zu einem anklickbaren Link, ideal zum Beispiel für die Verknüpfung eines Dashboards.', + ping: 'Ping', + ping_desc: + 'Du kannst einen benutzerdefinierten Shell-Befehl verwenden, um festzustellen, ob das Gerät eingeschaltet ist. Der Befehl sollte einen Exit-Code von 0 zurückgeben, um anzuzeigen, dass das Gerät eingeschaltet ist. Jeder andere Exit-Code setzt den Status auf offline.', + ping_cmd: 'Eigener Ping-Befehl', wake: 'Einschalten', wake_desc: 'Du kannst das Gerät mit einem Cron-Job einschalten.', + wake_cmd: 'Eigener Einschalt-Befehl', wake_cron: 'Cron', wake_cron_enable: 'Aktivieren', sol: 'Sleep-On-LAN', diff --git a/frontend/src/lib/i18n/fr/index.ts b/frontend/src/lib/i18n/fr/index.ts index f8b685c5..23524cbd 100644 --- a/frontend/src/lib/i18n/fr/index.ts +++ b/frontend/src/lib/i18n/fr/index.ts @@ -65,8 +65,13 @@ const fr = { link: 'Lien', link_desc: 'Rend le nom de votre appareil cliquable, parfait pour y lier un tableau de bord par exemple.', + ping: 'Ping', + ping_desc: + "Vous pouvez utiliser une commande shell personnalisée pour vérifier si l'appareil est sous tension. La commande doit renvoyer un code de sortie de 0 pour indiquer que l'appareil est sous tension, tout autre code de sortie indiquera que l'appareil est hors tension.", + ping_cmd: 'Commande ping personnalisée', wake: 'Réveil', wake_desc: 'Vous pouvez allumer cet appareil en utilisant un job cron planifié.', + wake_cmd: 'Commande de réveil personnalisée', wake_cron: 'Réveil avec cron', wake_cron_enable: 'Activer le réveil avec cron', sol: 'Sleep-On-LAN', diff --git a/frontend/src/lib/i18n/i18n-types.ts b/frontend/src/lib/i18n/i18n-types.ts index a7971aa0..cd3df167 100644 --- a/frontend/src/lib/i18n/i18n-types.ts +++ b/frontend/src/lib/i18n/i18n-types.ts @@ -257,6 +257,18 @@ type RootTranslation = { * M​a​k​e​s​ ​y​o​u​r​ ​d​e​v​i​c​e​ ​n​a​m​e​ ​a​ ​c​l​i​c​k​a​b​l​e​ ​l​i​n​k​,​ ​p​e​r​f​e​c​t​ ​f​o​r​ ​l​i​n​k​i​n​g​ ​a​ ​d​a​s​h​b​o​a​r​d​ ​f​o​r​ ​e​x​a​m​p​l​e​. */ link_desc: string; + /** + * P​i​n​g + */ + ping: string; + /** + * Y​o​u​ ​c​a​n​ ​u​s​e​ ​a​ ​c​u​s​t​o​m​ ​s​h​e​l​l​ ​c​o​m​m​a​n​d​ ​t​o​ ​s​e​e​ ​i​f​ ​t​h​e​ ​d​e​v​i​c​e​ ​i​s​ ​p​o​w​e​r​e​d​ ​o​n​.​ ​T​h​e​ ​c​o​m​m​a​n​d​ ​s​h​o​u​l​d​ ​r​e​t​u​r​n​ ​a​n​ ​e​x​i​t​ ​c​o​d​e​ ​o​f​ ​<​s​p​a​n​ ​c​l​a​s​s​=​"​b​a​d​g​e​"​>​0​<​/​s​p​a​n​>​ ​t​o​ ​i​n​d​i​c​a​t​e​ ​t​h​a​t​ ​t​h​e​ ​d​e​v​i​c​e​ ​i​s​ ​p​o​w​e​r​e​d​ ​o​n​,​ ​a​n​y​ ​o​t​h​e​r​ ​e​x​i​t​ ​c​o​d​e​ ​w​i​l​l​ ​m​a​r​k​ ​t​h​e​ ​d​e​v​i​c​e​ ​a​s​ ​p​o​w​e​r​e​d​ ​o​f​f​. + */ + ping_desc: string; + /** + * C​u​s​t​o​m​ ​p​i​n​g​ ​c​o​m​m​a​n​d + */ + ping_cmd: string; /** * W​a​k​e */ @@ -265,6 +277,10 @@ type RootTranslation = { * Y​o​u​ ​c​a​n​ ​p​o​w​e​r​ ​t​h​i​s​ ​d​e​v​i​c​e​ ​u​s​i​n​g​ ​a​ ​s​c​h​e​d​u​l​e​d​ ​c​r​o​n​ ​j​o​b​. */ wake_desc: string; + /** + * C​u​s​t​o​m​ ​w​a​k​e​ ​c​o​m​m​a​n​d + */ + wake_cmd: string; /** * W​a​k​e​ ​c​r​o​n */ @@ -1012,6 +1028,18 @@ export type TranslationFunctions = { * Makes your device name a clickable link, perfect for linking a dashboard for example. */ link_desc: () => LocalizedString; + /** + * Ping + */ + ping: () => LocalizedString; + /** + * You can use a custom shell command to see if the device is powered on. The command should return an exit code of 0 to indicate that the device is powered on, any other exit code will mark the device as powered off. + */ + ping_desc: () => LocalizedString; + /** + * Custom ping command + */ + ping_cmd: () => LocalizedString; /** * Wake */ @@ -1020,6 +1048,10 @@ export type TranslationFunctions = { * You can power this device using a scheduled cron job. */ wake_desc: () => LocalizedString; + /** + * Custom wake command + */ + wake_cmd: () => LocalizedString; /** * Wake cron */ diff --git a/frontend/src/lib/i18n/pt/index.ts b/frontend/src/lib/i18n/pt/index.ts index 0b3a9637..4eda8f59 100644 --- a/frontend/src/lib/i18n/pt/index.ts +++ b/frontend/src/lib/i18n/pt/index.ts @@ -64,8 +64,13 @@ const pt = { link: 'Link', link_desc: 'Permite que o nome do seu dispositivo seja um link. Perfeito para dashboard, por exemplo.', + ping: 'Ping', + ping_desc: + 'Pode utilizar um comando shell personalizado para ver se o dispositivo está ligado. O comando deve devolver um código de saída de 0 para indicar que o dispositivo está ligado, qualquer outro código de saída marcará o dispositivo como desligado.', + ping_cmd: 'Comando ping personalizado', wake: 'Ligar', wake_desc: 'Poderá ligar este dispositivo através dum cron job agendado.', + wake_cmd: 'Comando de despertar personalizado', wake_cron: 'Wake cron', wake_cron_enable: 'Ativar wake cron', sol: 'Sleep-On-LAN', diff --git a/frontend/src/lib/i18n/zh/index.ts b/frontend/src/lib/i18n/zh/index.ts index 1eb9686a..2a6c14ed 100644 --- a/frontend/src/lib/i18n/zh/index.ts +++ b/frontend/src/lib/i18n/zh/index.ts @@ -60,8 +60,13 @@ const zh = { ports_number: '端口号', link: '链接', link_desc: '为您的设备名设置一个可点击的链接.', + ping: 'Ping', + ping_desc: + '您可以使用自定义 shell 命令来查看设备是否已接通电源。该命令应返回 0 的退出代码,表示设备电源已打开,任何其他退出代码都将标记设备电源已关闭。', + ping_cmd: '自定义 ping 命令', wake: '唤醒', wake_desc: '您可以通过计划任务来唤醒设备.', + wake_cmd: '自定义唤醒命令', wake_cron: '唤醒计划任务', wake_cron_enable: '启用定时唤醒', sol: 'Sleep-On-LAN',