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

+2 -4
View File
@@ -17,8 +17,6 @@ import {
users,
} from "@homarr/db/schema";
import { getAppManagementAccess, getIntegrationManagementAccess } from "@homarr/definitions";
import type { TranslationObject } from "@homarr/translation";
import { createTRPCRouter, publicProcedure } from "../trpc";
const getFullAccessIntegrationIdsAsync = async (db: Database, userId: string) => {
@@ -49,8 +47,8 @@ const getFullAccessIntegrationIdsAsync = async (db: Database, userId: string) =>
};
interface HomeStatistic {
titleKey: keyof TranslationObject["management"]["page"]["home"]["statistic"];
subtitleKey: keyof TranslationObject["management"]["page"]["home"]["statisticLabel"];
titleKey: "app" | "board" | "group" | "integration" | "invite" | "media" | "searchEngine" | "user";
subtitleKey: "authentication" | "authorization" | "boards" | "resources";
count: number;
path: string;
}
@@ -1,6 +1,7 @@
import type { V1NodeList, VersionInfo } from "@kubernetes/client-node";
import { TRPCError } from "@trpc/server";
import { invariantTechnicalLabels } from "@homarr/definitions";
import type { ClusterResourceCount, KubernetesCluster } from "@homarr/definitions";
import { kubernetesMiddleware } from "../../../middlewares/kubernetes";
@@ -81,7 +82,7 @@ export const clusterRouter = createTRPCRouter({
metricsAvailable: nodeMetricsClient !== null,
capacity: [
{
type: "CPU",
type: invariantTechnicalLabels.cpu,
resourcesStats: [
{
percentageValue: reservedCPUPercentage,