Minor i18n changes

This commit is contained in:
iotux
2025-12-15 15:09:42 +01:00
parent 9a0b6a56dc
commit 7a0a85c1e2
2 changed files with 14 additions and 1 deletions
+2 -1
View File
@@ -1026,7 +1026,8 @@
"GrafanaOncallUrl": "Grafana Oncall URL",
"Local Service": "Local Service",
"Service Name": "Service Name",
"localServiceDescription": "The name of the systemd service to check. Example: `nginx.service`",
"localServiceDescription": "The internal service name used by the OS (systemd for Linux, Service Name for Windows).",
"localServiceDebugHelp": "To debug, run this on your server: {linuxCommand} (Linux) or {windowsCommand} (Windows PowerShell). The command must return 'active' or 'Running'.",
"Browser Screenshot": "Browser Screenshot",
"Command": "Command",
"Expected Output": "Expected Output",
+12
View File
@@ -671,6 +671,18 @@
<input id="local-service-name" v-model="monitor.local_service_name" type="text" class="form-control" required placeholder="nginx.service">
<div class="form-text">
{{ $t("localServiceDescription") }}
<div class="mt-2">
<i18n-t keypath="localServiceDebugHelp" tag="span">
<template #linuxCommand>
<code>systemctl is-active &lt;service&gt;</code>
</template>
<!-- Reserved for Windows impl.ementation -->
<!-- template #windowsCommand>
<code>Get-Service -Name "&lt;service&gt;"</code>
</template -->
</i18n-t>
</div>
</div>
</div>
</template>