Méthode |
Description |
|
__construct ( Illuminate\Contracts\Foundation\Application $app ) |
Constructor. |
|
getAppLocale ( ) : string |
Retrieves the current app's default locale. |
|
getDefaultTranslation ( string $text ) : Model |
Returns the translation by the specified
text and the applications default locale. |
|
getLocale ( ) : string |
Retrieves the current locale from the session. If a locale isn't
set then the default app locale is set as the current locale. |
|
getRoutePrefix ( ) : null | string |
Returns a route prefix to automatically set a locale depending on the segment. |
|
setLocale ( string $code = '' ) |
Sets the default locale property. |
|
translate ( string $text = '', array $replacements = [], string $toLocale = '' ) : string |
Returns the translation for the current locale. |
|