Time to do an update.

This commit is contained in:
Cody Cook 2025-01-09 11:57:11 -08:00
commit 0b0697bb42
22 changed files with 4352 additions and 268 deletions

View file

@ -1,13 +1,12 @@
<?php
function loadLocale($lang = 'en-us') {
function loadLocale($lang = 'en-us')
{
$file = __DIR__ . '/../locale/' . $lang . '/messages.php';
if (file_exists($file)) {
return require_once $file;
} else {
// Fallback to English if the specified language file does not exist
return require_once __DIR__ . '/../locale/en-us/messages.php';
return require_once __DIR__ . '/../locale/en-us/messages.php';
}
}