Localization
Definition
A localization file is used to translate all the labels present in a module. To do this it is necessary to create a translation file per module and per language.
You can have more information about localization in the Laravel official documentation.
Example
Here is the english localization file of the User module.
The field named field.name
is translated into Name.
The block name block.auth
is translated into Authentication.
Create a localization file
For each module you have to create a localization file for each language you want to use.
To do this, simply create a file located at resources/lang/{lang_code}/{module_name}.php
.
Add a translation key for the module's name like (e.g. 'person' => 'People'
). This translation is used in several places, like in the menu.
Override a localization file
You can easily override a localization file from another package. For more information, please refer to the Overriding documentation.
Last updated