Showing 7 of 1,697 result(s)
The signature for the load method is:
The getLoader method is used to return the instance of the "Illuminate\Contracts\Translation\Loader" implementation the translator is currently using. By default, this will be an instance of "Illuminate\Translation\FileLoader", which is registered...
The addJsonPath is used to add a new JSON language file path to the file loader. This method will internally call the addJsonPath on the translator's addJsonPath method. For more examples on how to call the addJsonPath method, refer to the...
The addLines method can be used to add arbitrary translation lines to the translator's translation lines collection for the provided locale. This method can be used to add translation lines at runtime in response to dynamic conditions within your...
The signature for the addLines method is:
Each translator instance contains an instance of "Illuminate\Translation\MessageSelector", which is used to determine which translation line should be returned when using the choice or transChoice methods. The translator allows you to retrieve the...
The setSelector method can be used to set which MessageSelector instance is used by the translator.