feat: add env var VITE_DISABLE_SIGNUPS to allow admins to disable all signups, closes #1592

This commit is contained in:
Amruth Pillai
2023-11-26 15:48:17 +01:00
parent f090573147
commit e26ca2adf1
53 changed files with 958 additions and 754 deletions

View File

@ -125,7 +125,7 @@ msgstr "Neue Seite hinzufügen"
msgid "AI"
msgstr "AI"
#: apps/client/src/pages/auth/register/page.tsx:71
#: apps/client/src/pages/auth/register/page.tsx:74
msgid "Already have an account?"
msgstr "Hast du bereits ein Konto?"
@ -323,8 +323,8 @@ msgstr "In die Zwischenablage kopieren"
msgid "Create"
msgstr "Erstellen"
#: apps/client/src/pages/auth/register/page.tsx:64
#: apps/client/src/pages/auth/register/page.tsx:69
#: apps/client/src/pages/auth/register/page.tsx:67
#: apps/client/src/pages/auth/register/page.tsx:72
msgid "Create a new account"
msgstr "Neues Konto erstellen"
@ -485,7 +485,7 @@ msgstr "Effekte"
#: apps/client/src/pages/auth/forgot-password/page.tsx:82
#: apps/client/src/pages/auth/login/page.tsx:84
#: apps/client/src/pages/auth/register/page.tsx:134
#: apps/client/src/pages/auth/register/page.tsx:148
#: apps/client/src/pages/builder/sidebars/left/sections/basics.tsx:50
#: apps/client/src/pages/dashboard/settings/_sections/account.tsx:180
msgid "Email"
@ -666,7 +666,7 @@ msgid "Hide Icons"
msgstr "Symbole ausblenden"
#: apps/client/src/pages/auth/login/page.tsx:104
#: apps/client/src/pages/auth/register/page.tsx:160
#: apps/client/src/pages/auth/register/page.tsx:174
#: apps/client/src/pages/auth/reset-password/page.tsx:88
msgid "Hold <0>Ctrl</0> to display your password temporarily."
msgstr "Halte <0>STRG</0> gedrückt, um dein Passwort temporär anzuzeigen."
@ -766,17 +766,17 @@ msgstr "Das Verifizierungs-Token ist scheinbar ungültig. Bitte versuche die Ver
msgid "It looks like your email address has already been verified."
msgstr "Deine E-Mail-Adresse wurde bereits bestätigt."
#: apps/client/src/pages/auth/register/page.tsx:95
#: apps/client/src/pages/auth/register/page.tsx:109
msgctxt "Localized version of a placeholder name. For example, Max Mustermann in German or Jan Kowalski in Polish."
msgid "John Doe"
msgstr "Max Mustermann"
#: apps/client/src/pages/auth/register/page.tsx:116
#: apps/client/src/pages/auth/register/page.tsx:130
msgctxt "Localized version of a placeholder username. For example, max.mustermann in German or jan.kowalski in Polish."
msgid "john.doe"
msgstr "max.mustermann"
#: apps/client/src/pages/auth/register/page.tsx:137
#: apps/client/src/pages/auth/register/page.tsx:151
msgctxt "Localized version of a placeholder email. For example, max.mustermann@example.de in German or jan.kowalski@example.pl in Polish."
msgid "john.doe@example.com"
msgstr "max.mustermann@beispiel.de"
@ -910,7 +910,7 @@ msgstr "Außenabstand"
msgid "MIT License"
msgstr "MIT Lizenz"
#: apps/client/src/pages/auth/register/page.tsx:92
#: apps/client/src/pages/auth/register/page.tsx:106
#: apps/client/src/pages/builder/sidebars/left/dialogs/custom-section.tsx:53
#: apps/client/src/pages/builder/sidebars/left/dialogs/interests.tsx:40
#: apps/client/src/pages/builder/sidebars/left/dialogs/languages.tsx:36
@ -936,7 +936,7 @@ msgstr "Netzwerk"
msgid "New Password"
msgstr "Neues Passwort"
#: apps/client/src/components/locale-combobox.tsx:39
#: apps/client/src/components/locale-combobox.tsx:43
msgid "No results found"
msgstr "Keine Ergebnisse gefunden"
@ -1009,7 +1009,7 @@ msgid "Page {0}"
msgstr "Seite {0}"
#: apps/client/src/pages/auth/login/page.tsx:99
#: apps/client/src/pages/auth/register/page.tsx:155
#: apps/client/src/pages/auth/register/page.tsx:169
#: apps/client/src/pages/auth/reset-password/page.tsx:83
#: apps/client/src/pages/dashboard/settings/_sections/security.tsx:76
msgid "Password"
@ -1102,7 +1102,7 @@ msgstr "Problem melden"
#: apps/client/src/pages/auth/backup-otp/page.tsx:52
#: apps/client/src/pages/auth/forgot-password/page.tsx:49
#: apps/client/src/pages/auth/login/page.tsx:55
#: apps/client/src/pages/auth/register/page.tsx:64
#: apps/client/src/pages/auth/register/page.tsx:67
#: apps/client/src/pages/auth/reset-password/page.tsx:60
#: apps/client/src/pages/auth/verify-email/page.tsx:43
#: apps/client/src/pages/auth/verify-otp/page.tsx:52
@ -1219,7 +1219,7 @@ msgstr "Nach einem Schriftart-Subset suchen"
msgid "Search for a font variant"
msgstr "Nach einer Schriftvariante suchen"
#: apps/client/src/components/locale-combobox.tsx:37
#: apps/client/src/components/locale-combobox.tsx:41
msgid "Search for a language"
msgstr "Nach einer Sprache suchen"
@ -1281,7 +1281,7 @@ msgstr "Seitenleiste"
msgid "Sign in"
msgstr "Anmelden"
#: apps/client/src/pages/auth/register/page.tsx:74
#: apps/client/src/pages/auth/register/page.tsx:77
msgid "Sign in now"
msgstr "Jetzt anmelden"
@ -1302,10 +1302,14 @@ msgstr "Mit GitHub anmelden"
msgid "Sign in with Google"
msgstr "Mit Google anmelden"
#: apps/client/src/pages/auth/register/page.tsx:171
#: apps/client/src/pages/auth/register/page.tsx:185
msgid "Sign up"
msgstr "Registrieren"
#: apps/client/src/pages/auth/register/page.tsx:85
msgid "Signups are currently disabled by the administrator."
msgstr ""
#: apps/client/src/pages/builder/sidebars/left/sections/picture/options.tsx:72
msgid "Size (in px)"
msgstr "Größe (in px)"
@ -1553,7 +1557,7 @@ msgstr "Backup-Code verwenden"
msgid "User does not have an associated 'secrets' record. Please report this issue on GitHub."
msgstr "Das Benutzerkonto hat keinen Eintrag für 'secrets'. Bitte melde dieses Problem auf GitHub."
#: apps/client/src/pages/auth/register/page.tsx:113
#: apps/client/src/pages/auth/register/page.tsx:127
#: apps/client/src/pages/builder/sidebars/left/dialogs/profiles.tsx:54
#: apps/client/src/pages/dashboard/settings/_sections/account.tsx:166
msgid "Username"