Showing 10 of 1,278 results.

Specifying a Locale | Laravel 5: String Translation Public API

By default, the get method will look for the translation lines using the locale specified as the default with the translation service. However, we can specify a locale by supplying an argument for the $locale parameter. For the following example,...

Example Use | Laravel 5: String Translation Public API

For the following examples, we will create a new JSON-based language file at resources/lang/example.json : 1 { 2 " validation.accepted " : " The :attribute is required, resolved from 3 our example JSON file. " 4 } In the following example, we will...

Example Use | Laravel 5: String Translation Public API

The following examples will demonstrate how to make equivalent calls between the trans and the get method. For more detailed explanation of each of the parameters, see the section on the get method. In the following example, we will use the trans...