trait Localizable (View source)

Methods

mixed
withLocale(string $locale, Closure $callback)

Run the callback with the given locale.

Details

mixed withLocale(string $locale, Closure $callback)

Run the callback with the given locale.

Parameters

string $locale
Closure $callback

Return Value

mixed