fix some tailscale translation strings
This commit is contained in:
parent
f520629298
commit
d683dbafbc
@ -235,7 +235,9 @@
|
||||
"tailscale": {
|
||||
"address": "Address",
|
||||
"expires": "Expires",
|
||||
"never": "Never",
|
||||
"last_seen": "Last Seen",
|
||||
"now": "Now",
|
||||
"years": "{{number}}y",
|
||||
"weeks": "{{number}}w",
|
||||
"days": "{{number}}d",
|
||||
|
||||
@ -53,11 +53,11 @@ export default function Component({ service }) {
|
||||
const getLastSeen = () => {
|
||||
const date = new Date(lastSeen);
|
||||
const diff = compareDifferenceInTwoDates(date, now);
|
||||
return diff === "Now" ? diff : t("tailscale.ago", { value: diff });
|
||||
return diff === "Now" ? t("tailscale.now") : t("tailscale.ago", { value: diff });
|
||||
};
|
||||
|
||||
const getExpiry = () => {
|
||||
if (keyExpiryDisabled) return "Never";
|
||||
if (keyExpiryDisabled) return t("tailscale.never");
|
||||
const date = new Date(expires);
|
||||
return compareDifferenceInTwoDates(now, date);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user