aboutsummaryrefslogtreecommitdiff
path: root/localisation.php
diff options
context:
space:
mode:
authorwinter Sparkles2026-08-08 23:01:51 +0100
committerwinter Sparkles2026-08-08 23:01:51 +0100
commitb422b6ded608807c7d3bb8b965b3797ca513610b (patch)
tree7925fa972efbfff2a9bf8648334d49e3fd6b5df1 /localisation.php
parent880a274e1ecbed42c76d3dc4a81161b3ae372726 (diff)
implement a large chunk of the auth system itself :D
Diffstat (limited to 'localisation.php')
-rw-r--r--localisation.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/localisation.php b/localisation.php
new file mode 100644
index 0000000..0e193b0
--- /dev/null
+++ b/localisation.php
@@ -0,0 +1,14 @@
+<?php
+
+function L(string $key) {
+ // me when im lazy
+ return [
+ 'login.title' => 'Log in',
+ 'challenge.input.username' => 'Username',
+ 'challenge.input.password' => 'Password',
+ 'challenge.input.otp' => 'One-time passcode',
+ 'challenge.message.wrong-password' => 'Incorrect username or password',
+ 'challenge.message.wrong-otp' => 'Invalid OTP code',
+ 'challenge.continue' => 'Continue',
+ ][$key] ?? $key;
+}