Editing existing translations
Sometimes the translations can be improved to make them better understandable.
- To edit existing language translations – go to
resources/lang/{language_iso_code}/
- Here you will find files almost grouped based on the pages. Edit the string you want to change and save it.
- If you make improvements to the language file, please do share it with us. We will update the codebase so that it is useful to others too. Email: [email protected]
Adding new translations
- Create the language folder with the language code inside the lang folder(like the language code for Spanish is `es` )
Follow the path (/resources/lang/es). - Inside the newly created folder add the file which you have translated.
Follow the path(/resources/lang/es/messages.php) here `messages.php` is the file where you will keep all the new translations for that language(Spanish in this case). - Copy and paste value from `resources/lang/en/messages.php` file to google translation (Ex: ‘form_name’ => ‘Form Name’ [[here `Form Name` is the value & `form_name` is key]]).
- And now copy the translated value from there and paste into the array present in the `/resources/lang/es/messages.php` file using the key => value pair.
- ex: <?php
return [
‘success’ => ‘Éxito’,
<!– add key value pair of translation –>
]; - NOTE: You can get the code for the languages from `/config/constants.php` file. Here the code is defined as keys inside the `langs` array.
- ex:
'langs' => [
'en' => ['full_name' => 'English', 'short_name' => 'English']
📩 Still stuck? Contact Support