First commit
This commit is contained in:
commit
d5bb2f19fa
117 changed files with 68604 additions and 0 deletions
11
functions/i18n.php
Normal file
11
functions/i18n.php
Normal 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';
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue