diff options
Diffstat (limited to 'localisation.php')
| -rw-r--r-- | localisation.php | 14 |
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; +} |
