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
@@ -1,6 +1,7 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { IconCircle, IconCircleCheck, IconX } from "@tabler/icons-react";
|
||||
import { t } from "../i18n";
|
||||
|
||||
export interface SetupStep {
|
||||
id: string;
|
||||
@@ -61,25 +62,25 @@ export default function SetupGuide({ steps }: { steps: SetupStep[] }) {
|
||||
<div className="card-header">
|
||||
<div>
|
||||
<h3 className="card-title" id="setup-guide-title">
|
||||
Getting started
|
||||
{t("Getting started")}
|
||||
</h3>
|
||||
<div className="text-secondary small">
|
||||
{done} of {steps.length} done
|
||||
</div>
|
||||
</div>
|
||||
<div className="card-actions">
|
||||
<button type="button" className="btn btn-sm btn-ghost-secondary" onClick={dismiss} aria-label="Hide the getting started guide" title="Hide this guide (bring it back from the search box: Ctrl K)">
|
||||
<button type="button" className="btn btn-sm btn-ghost-secondary" onClick={dismiss} aria-label={t("Hide the getting started guide")} title={t("Hide this guide (bring it back from the search box: Ctrl K)")}>
|
||||
<IconX size={16} />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="progress progress-sm rounded-0" role="progressbar" aria-label="Setup progress" aria-valuemin={0} aria-valuemax={steps.length} aria-valuenow={done}>
|
||||
<div className="progress progress-sm rounded-0" role="progressbar" aria-label={t("Setup progress")} aria-valuemin={0} aria-valuemax={steps.length} aria-valuenow={done}>
|
||||
<div className="progress-bar bg-green" style={{ width: `${(done / steps.length) * 100}%` }} />
|
||||
</div>
|
||||
<ul className="list-group list-group-flush">
|
||||
{steps.map((s) => (
|
||||
<li key={s.id} className="list-group-item d-flex align-items-center gap-3">
|
||||
{s.done ? <IconCircleCheck size={22} className="text-green flex-shrink-0" aria-label="Done" /> : <IconCircle size={22} className="text-secondary flex-shrink-0" aria-label="Not done yet" />}
|
||||
{s.done ? <IconCircleCheck size={22} className="text-green flex-shrink-0" aria-label={t("Done")} /> : <IconCircle size={22} className="text-secondary flex-shrink-0" aria-label={t("Not done yet")} />}
|
||||
<div className="flex-fill" style={{ minWidth: 0 }}>
|
||||
<div className={s.done ? "text-secondary" : "fw-medium"}>{s.title}</div>
|
||||
{!s.done && <div className="text-secondary small">{s.description}</div>}
|
||||
|
||||
Reference in new issue
Block a user