|
|
@@ -155,4 +155,13 @@ class Core {
|
|
|
return Core::isProduction() ? "img/icon.png" : "img/dev_icon.png";
|
|
|
}
|
|
|
|
|
|
+ public static function getLocale(): string {
|
|
|
+ return Core::$user->locale ?? LOCALE;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static function getLang(): string {
|
|
|
+ $parts = explode("_", Core::getLocale());
|
|
|
+ return $parts[0];
|
|
|
+ }
|
|
|
+
|
|
|
}
|