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
@@ -15,6 +15,7 @@ import {
|
||||
} from "../utils/generators";
|
||||
import { ErrorNotice } from "../components/Notice";
|
||||
import PageIntro from "../components/PageIntro";
|
||||
import { t } from "../i18n";
|
||||
|
||||
const MIXED = "mixed";
|
||||
|
||||
@@ -85,7 +86,7 @@ export default function Generator({ user }: { user: CurrentUser }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<h2 className="page-title mb-3">Generator</h2>
|
||||
<h2 className="page-title mb-3">{t("Generator")}</h2>
|
||||
<PageIntro>
|
||||
Usernames and passwords are generated locally in your browser — nothing is sent to or stored on the server. Server names are
|
||||
picked in your browser too, from name lists the server hands out.
|
||||
@@ -95,7 +96,7 @@ export default function Generator({ user }: { user: CurrentUser }) {
|
||||
<div className="col-md-6 col-lg-4">
|
||||
<div className="card h-100">
|
||||
<div className="card-header">
|
||||
<h3 className="card-title">Server name</h3>
|
||||
<h3 className="card-title">{t("Server name")}</h3>
|
||||
</div>
|
||||
<div className="card-body">
|
||||
<p className="text-secondary">
|
||||
|
||||
Reference in new issue
Block a user