Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ Of course if you are using the [Blade templating engine](/docs/{{version}}/blade

If the specified translation string does not exist, the `__` function will simply return the translation string key. So, using the example above, the `__` function would return `messages.welcome` if the translation string does not exist.

If you are using a nested directory structure, you should specify the path to the translation file using forward slashes:

{{ __('invoices/customer.title') }}
{{ __('invoices/business.title') }}

// and not:

// {{ __('invoices.customer.title') }}
// {{ __('invoices.business.title') }}

<a name="replacing-parameters-in-translation-strings"></a>
### Replacing Parameters In Translation Strings

Expand Down