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
@@ -9,14 +9,15 @@ import { formatBytes } from "./settings/StorageSettings";
|
||||
import { readableError } from "../utils/errors";
|
||||
import PageIntro from "../components/PageIntro";
|
||||
import FigureHistory from "../components/FigureHistory";
|
||||
import { t } from "../i18n";
|
||||
|
||||
function Badge({ i }: { i: ImmichInfo }) {
|
||||
if (!i.enabled) return <span className="badge bg-secondary-lt text-secondary">Off</span>;
|
||||
if (!i.state) return <span className="badge bg-secondary-lt text-secondary">Not read yet</span>;
|
||||
if (!i.state) return <span className="badge bg-secondary-lt text-secondary">{t("Not read yet")}</span>;
|
||||
if (!i.fresh) return <span className="badge bg-yellow-lt text-yellow">Can’t be read</span>;
|
||||
if (i.problems.some((x) => x.severity === "critical")) return <span className="badge bg-red-lt text-red">Needs a look</span>;
|
||||
if (i.problems.length > 0) return <span className="badge bg-yellow-lt text-yellow">Needs a look</span>;
|
||||
return <span className="badge bg-green-lt text-green">In order</span>;
|
||||
if (i.problems.some((x) => x.severity === "critical")) return <span className="badge bg-red-lt text-red">{t("Needs a look")}</span>;
|
||||
if (i.problems.length > 0) return <span className="badge bg-yellow-lt text-yellow">{t("Needs a look")}</span>;
|
||||
return <span className="badge bg-green-lt text-green">{t("In order")}</span>;
|
||||
}
|
||||
|
||||
const n = (v: number | null) => (v === null ? "—" : v.toLocaleString());
|
||||
@@ -103,7 +104,7 @@ function Card({ i }: { i: ImmichInfo }) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Queue</th>
|
||||
<th className="text-end">Active</th>
|
||||
<th className="text-end">{t("Active")}</th>
|
||||
<th className="text-end">Waiting</th>
|
||||
<th className="text-end">Failed</th>
|
||||
<th />
|
||||
@@ -152,8 +153,8 @@ export default function Immich() {
|
||||
<>
|
||||
<h2 className="page-title">Immich</h2>
|
||||
<PageIntro>
|
||||
Photos are what cannot be made again, and Immich fails quietly. It is read every few minutes with an API key (see <Link to="/integrations">Integrations</Link>). A <strong>disk under the library that is filling up</strong> and <strong>background jobs that have failed</strong> (thumbnails and
|
||||
metadata that were never made) are alerts — see <Link to="/alerts">Alerts</Link>.
|
||||
Photos are what cannot be made again, and Immich fails quietly. It is read every few minutes with an API key (see <Link to="/integrations">{t("Integrations")}</Link>). A <strong>disk under the library that is filling up</strong> and <strong>background jobs that have failed</strong> (thumbnails and
|
||||
metadata that were never made) are alerts — see <Link to="/alerts">{t("Alerts")}</Link>.
|
||||
</PageIntro>
|
||||
<ErrorNotice error={error} />
|
||||
{!data && !error && <BlockSkeleton lines={4} />}
|
||||
|
||||
Reference in new issue
Block a user