Search

Showing 7 of 1,216 result(s)

/blog/2018/02/20/laravel-5-string-translation-public-api#content-example-use-10

In the following example, we will change the translator's default locale to es :

/blog/2018/02/20/laravel-5-string-translation-public-api#content-signature-15

The signature of the getLocale method is: public function getLocale();

/blog/2018/02/20/laravel-5-string-translation-public-api#content-example-use-11

For the following example, we will see how the results of calling the getLocale method change after we manipulate the currently configured default locale: After the above code has executed, the locale variables would contain the following values:...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-getting-the-application-locale-with-locale

The locale method is an alias of the getLocale and share the same signatures and behavior. They can be used interchangeably.