Search

Showing 7 of 1,697 result(s)

/blog/2018/02/20/laravel-5-string-translation-public-api#content-retrieving-the-translation-loader-with-getloader

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...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-adding-json-translation-files-with-addjsonpath

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...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-adding-arbitrary-translation-lines-with-addlines

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...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-working-with-translator-message-selectors

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...