Showing 7 of 1,216 result(s)
The signature of the addJsonPath method is:
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:
The following example demonstrates how to use the addLines method to add lines to the existing translator instance. We need to supply it a locale, but we will explore methods to do this dynamically based on the currently configured default locale....
The parseKey is used to parse a given $key into its namespace, group and item parts. The namespace refers to a custom namespace (or the default * namespace); the group refers to a particular file, such as passwords.php and the item refers to a...
The signature of the parseKey method is:
The following example will demonstrate how to call the parseKey method to return information about the translation key: $parts = $translator->parseKey('passwords.reset'); After the above code has executed, the $parts array would contain the...