Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

added translations to demo info + minor improvement

daniel31x136544e3ecbb34
diff --git a/pages/login.tsx b/pages/login.tsx
index cc1a7f0b..c1bc8d83 100644
--- a/pages/login.tsx
+++ b/pages/login.tsx
@@ -112,16 +112,12 @@ export default function Login({
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
></path>
</svg>
- <p className="font-bold">Demo Only</p>
- </div>
- <div className="text-xs">
- This is only a demo instance of Linkwarden and uploads are
- disabled.
+ <p className="font-bold">{t("demo_title")}</p>
</div>
+ <div className="text-xs">{t("demo_desc")}</div>
<div className="text-xs">
- If you want to try out the full version, you can sign up for
- a free trial at:{" "}
+ {t("demo_desc_2")}{" "}
<a
href="https://cloud.linkwarden.app"
target="_blank"
@@ -133,6 +129,8 @@ export default function Login({
<div
className="btn btn-sm btn-primary w-full"
onClick={async () => {
+ const load = toast.loading(t("authenticating"));
+
setForm({
username: process.env
.NEXT_PUBLIC_DEMO_USERNAME as string,
@@ -144,9 +142,11 @@ export default function Login({
password: process.env.NEXT_PUBLIC_DEMO_PASSWORD,
redirect: false,
});
+
+ toast.dismiss(load);
}}
>
- Login as demo user
+ {t("demo_button")}
</div>
</div>
</div>
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index 4593398c..868fac03 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -366,5 +366,9 @@
"webpage": "Webpage",
"server_administration": "Server Administration",
"all_collections": "All Collections",
- "dashboard": "Dashboard"
+ "dashboard": "Dashboard",
+ "demo_title": "Demo Only",
+ "demo_desc": "This is only a demo instance of Linkwarden and uploads are disabled.",
+ "demo_desc_2": "If you want to try out the full version, you can sign up for a free trial at:",
+ "demo_button": "Login as demo user"
}
\ No newline at end of file