diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-22 14:31:54 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-22 14:31:54 +0100 |
commit | cc028e3c1901c86ffec8d010304c77ca65cbeadb (patch) | |
tree | 8168abda17f54507a5cd3b3ee76ae91362bd3236 | |
parent | 5d4cb7864dc3ca19669877def6c298eb96d19b16 (diff) | |
download | keks-meet-cc028e3c1901c86ffec8d010304c77ca65cbeadb.tar keks-meet-cc028e3c1901c86ffec8d010304c77ca65cbeadb.tar.bz2 keks-meet-cc028e3c1901c86ffec8d010304c77ca65cbeadb.tar.zst |
fix language list
-rw-r--r-- | client-web/public/start.html | 8 | ||||
-rw-r--r-- | client-web/source/locale.ts | 3 | ||||
-rw-r--r-- | client-web/source/preferences/decl.ts | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/client-web/public/start.html b/client-web/public/start.html index 67cad7f..d156176 100644 --- a/client-web/public/start.html +++ b/client-web/public/start.html @@ -23,13 +23,15 @@ below. </p> <p class="instructions"> - keks-meet is free software! It is licenced under the terms of - the third version of the GNU Affero General Public Licence only. + keks-meet is free software! Check out the source code on + <a href="https://codeberg.org/metamuffin/keks-meet">Codeberg</a + >. </p> <noscript> keks-meet needs evil javascript to be enabled. Don't be afraid though, all the code is free (AGPL-3.0-only)! Look at it on - <a href="https://codeberg.org/metamuffin/keks-meet">codeberg</a> + <a href="https://codeberg.org/metamuffin/keks-meet">codeberg</a + >. </noscript> <script> function random_name() { diff --git a/client-web/source/locale.ts b/client-web/source/locale.ts index 09849cc..9812972 100644 --- a/client-web/source/locale.ts +++ b/client-web/source/locale.ts @@ -1,7 +1,6 @@ +import { LANGS } from "./preferences/decl.ts"; import { PREFS } from "./preferences/mod.ts"; -export const LANGS = ["en", "de"] - const translations: { [key: string]: string } = {} export async function init_locale() { diff --git a/client-web/source/preferences/decl.ts b/client-web/source/preferences/decl.ts index ab57f0e..b72462a 100644 --- a/client-web/source/preferences/decl.ts +++ b/client-web/source/preferences/decl.ts @@ -4,7 +4,7 @@ Copyright (C) 2024 metamuffin <metamuffin.org> */ -import { LANGS } from "../locale.ts"; +export const LANGS = ["en", "de"] export function hex_id(len = 8): string { if (len > 8) return hex_id() + hex_id(len - 8) @@ -17,7 +17,7 @@ const optional = <T>(a: T): T | undefined => a export const PREF_DECLS = { username: { type: string, default: "guest-" + hex_id(), allow_url: true }, - language: { type: string, possible_values: LANGS, default: "system", allow_url: true }, + language: { type: string, possible_values: ["system", ...LANGS], default: "system", allow_url: true }, /* MEDIA */ rnnoise: { type: bool, default: true, allow_url: true }, |