First commit

This commit is contained in:
Cody Cook 2024-04-29 19:04:51 -07:00
commit d5bb2f19fa
117 changed files with 68604 additions and 0 deletions

11
functions/i18n.php Normal file
View file

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