Showing 7 of 1,216 result(s)
The signature of the has method is:
The hasForLocale is a convenient method to help check if a translation line has been defined for a given locale. its default behavior is to look in the default locale for the requested translation $key , but we can request information about any...
In the following example, we will check if various translation lines have been defined for different locales. The results of the operation will appear above the method call as either true or false . The following examples will assume the following...
The choice method is used to pluralize the specified translation $key . This method is often used to translate text based on a certain number of items. A good example is an application that displays user messages, and would like the ability to...
The signature of the choice method is:
Pluralization of strings is a complicated problem to solve. The table located at https://www.unicode.org/cldr/charts/25/supplemental/language_plural_rules.html gives a sense of the differences between different locales and the rules of...
The load method internally makes a call to the load method on the current instance of the "Illuminate\Contracts\Translation\Loader" implementation, which by default is an instance of FileLoader . The Translator additionally keeps an internal cache...