refactor: consolidate English translations (#6640)

This commit is contained in:
Thomas authored and GitHub committed 2026-08-21 19:00:27 +02:00
1 parent 81aa704537
commit 9e14a07e64
449 files changed
+3515 -3922

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@
import { Center, Flex, ScrollArea, SimpleGrid, Stack, Text } from "@mantine/core";
import { clientApi } from "@homarr/api/client";
import { useCurrentIntlLocale, useScopedI18n } from "@homarr/translation/client";
import { useCurrentIntlLocale, useI18n } from "@homarr/translation/client";
import type { WidgetComponentProps } from "../definition";
import { getUsableWidgetQueryData } from "../common/query-state";
@@ -16,8 +16,8 @@ export default function VpnWidget({ options, integrationIds, width, height }: Wi
});
const integrations = getUsableWidgetQueryData(summariesQuery) ?? [];
const { isPending } = summariesQuery;
const t = useScopedI18n("widget.vpn");
const tCommon = useScopedI18n("common");
const t = useI18n("widget.vpn");
const tCommon = useI18n("common");
const locale = useCurrentIntlLocale();
const dense = width < 240 || height < 120;
+4 -4
View File
@@ -13,7 +13,7 @@ import {
import type { RouterOutputs } from "@homarr/api";
import { useRequiredBoard } from "@homarr/boards/context";
import { useScopedI18n } from "@homarr/translation/client";
import { useI18n } from "@homarr/translation/client";
import { getStatusColor, RUNNING_STATUS } from "./helpers";
@@ -71,7 +71,7 @@ function VpnUnavailableContent({
dense: boolean;
integrationName?: string;
}) {
const t = useScopedI18n("widget.vpn");
const t = useI18n("widget.vpn");
return (
<Flex direction="row" w="100%" align="center" gap="xs">
@@ -102,7 +102,7 @@ function VpnStatusColumn({
compact: boolean;
dense: boolean;
}) {
const t = useScopedI18n("widget.vpn");
const t = useI18n("widget.vpn");
// Connected shows a shield with a check; anything else (stopped or unavailable) shows a shield with a cross.
const ShieldIcon = vpnStatus === RUNNING_STATUS ? IconShieldCheck : IconShieldX;
const statusLabel = t(
@@ -185,7 +185,7 @@ function VpnProviderDetails({ provider, protocol }: { provider: string; protocol
}
function DnsStatusBadge({ status }: { status: string }) {
const t = useScopedI18n("widget.vpn");
const t = useI18n("widget.vpn");
const StatusIcon = status === RUNNING_STATUS ? IconCircleCheckFilled : IconCircleXFilled;
const statusLabel = t(
status === RUNNING_STATUS ? "status.running" : status ? "status.notRunning" : "status.unavailable",