Replies: 1 comment
-
The $this->local = Locales::get(App::currentLocale())->code;
// or
$this->local = Locales::raw()->get(App::currentLocale()); At the same time, if you need to take the current locale, you can use the $this->local = Locales::getDefault()->code;
// or
$this->local = Locales::raw()->getDefault(); If you are using version 2 of the $this->local = Locales::getCurrent()->code;
// or
$this->local = Locales::raw()->getCurrent(); On our website you can find more detailed information on using the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
LocaleData to collect?
Beta Was this translation helpful? Give feedback.
All reactions