Add a Swedish interface with a per-person language switch
A small translation system (the English text is its own key, so anything without a Swedish entry stays English) and a Language switch in the user menu, saved on the account (users.language) and following the browser when no choice has been made. Swedish covers the menu, shared parts (search, tables, dialogs, relative times), the sign-in page and the everyday pages: Dashboard, Alerts, Servers, Updates, Maintenance, My work, Coming up, To do, Integrations and the display settings. Server-written messages stay English for now. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e7f23ba13f
commit
645816d5a8
168 files changed
+12142
-1422
No files matched your search
@@ -5,6 +5,7 @@ import TimeChart from "./TimeChart";
|
||||
import RangeSelect from "./RangeSelect";
|
||||
import { BlockSkeleton } from "./Skeleton";
|
||||
import { CHART_RANGES, useChartRange } from "../utils/chartRanges";
|
||||
import { t } from "../i18n";
|
||||
|
||||
function levelColor(series: ServerMetricSeries): string {
|
||||
const v = series.latest ?? 0;
|
||||
@@ -98,12 +99,12 @@ export default function ServerTrends({ serverId }: { serverId: number }) {
|
||||
</div>
|
||||
<div className="card-body">
|
||||
{failed ? (
|
||||
<div className="text-secondary">Couldn't load the history.</div>
|
||||
<div className="text-secondary">{t("Couldn't load the history.")}</div>
|
||||
) : series === null ? (
|
||||
<BlockSkeleton lines={4} />
|
||||
) : series.length === 0 ? (
|
||||
<div className="text-secondary">
|
||||
No history in this stretch yet. A sample is kept about every ten minutes once the agent has reported, and its hours and days after that, so lines appear here after a short while.
|
||||
{t("No history in this stretch yet. A sample is kept about every ten minutes once the agent has reported, and its hours and days after that, so lines appear here after a short while.")}
|
||||
</div>
|
||||
) : (
|
||||
<div className="trend-grid">
|
||||
|
||||
Reference in new issue
Block a user