trait Localizable (View source)

Methods

TReturn
withLocale(string|null $locale, TReturn $callback)

Run the callback with the given locale.

Details

TReturn withLocale(string|null $locale, TReturn $callback)

Run the callback with the given locale.

Parameters

string|null $locale
TReturn $callback

Return Value

TReturn