Skip to content

Commit 1e9c5a2

Browse files
committed
Allow get current locale
1 parent b75b2d5 commit 1e9c5a2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

system/Language/Language.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ public function setLocale(string $locale = null)
102102
return $this;
103103
}
104104

105+
/**
106+
* @return string
107+
*/
108+
public function getLocale(): string
109+
{
110+
return $this->locale;
111+
}
112+
105113
/**
106114
* Parses the language string for a file, loads the file, if necessary,
107115
* getting the line.

0 commit comments

Comments
 (0)