Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions src/Facades/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading