diff --git a/src/App.php b/src/App.php index 8c06ad1c..0ebb54b8 100644 --- a/src/App.php +++ b/src/App.php @@ -34,6 +34,21 @@ public function isHidden(): bool return $this->client->get('app/is-hidden')->json('is_hidden'); } + public function getLocale(): string + { + return $this->client->get('app/locale')->json('locale'); + } + + public function getLocaleCountryCode(): string + { + return $this->client->get('app/locale-country-code')->json('locale_country_code'); + } + + public function getSystemLocale(): string + { + return $this->client->get('app/system-locale')->json('system_locale'); + } + public function version(): string { return $this->client->get('app/version')->json('version'); diff --git a/src/Facades/App.php b/src/Facades/App.php index 8754580e..6c0b8410 100644 --- a/src/Facades/App.php +++ b/src/Facades/App.php @@ -10,6 +10,9 @@ * @method static void focus() * @method static void hide() * @method static bool isHidden() + * @method static string getLocale() + * @method static string getLocaleCountryCode() + * @method static string getSystemLocale() * @method static string version() * @method static int badgeCount($count = null) * @method static void addRecentDocument(string $path)