Table of Contents
Setting default System Language
By default system is configured to works in English. But you can change the default language. To change the default language follow the below steps:
- Open .env file
- You will find a configuration “APP_LOCALE=en” below APP_URL. If you don’t find it then add the configuration APP_LOCALE=en below APP_URL
- Change the value of the above key to your desired language as per the list given below
‘en’ => ‘English’,
‘es’ => ‘Español – Spanish’,
‘sq’ => ‘Shqip – Albanian’,
‘hi’ => ‘हिंदी – Hindi’,
‘nl’ => ‘Dutch’,
‘fr’ => ‘Français – French’,
‘de’ => ‘Deutsch – German’,
‘ar’ => ‘Arabic – العَرَبِيَّة’Or if you have added a new language then add the language ISO code.
- If you’re using version 2.8.2 or below then, go to config/app.php and replace
‘locale’ => ‘en’, (present in line 80)
‘locale’ => env(‘APP_LOCALE’, ‘en’),
Changing your Language Preference
To change your display language go to “Profile -> My Profile -> Language”
Select the language you want to use and save it. This will change all texts to your preferred language.
Editing existing translations
Sometimes the translations can be improved to make it better understandable.
- To edit existing language translations – go to
- 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 it the codebase so that it is useful to others too. Email: firstname.lastname@example.org
Translate language for login or register interface
Go to config/app.php and change the value of “locale” to the specified language iso code.
Adding new language
- Create a new directory for the language inside “/resources/lang/”. Name of directory should follow language_iso_code
- Copy the files from
/resources/lang/en/to the directory you created.
- Open the individual files, translate and save it.
- Go to
public/js/lang. Create a new file with name “<language_iso_code>.js”, copy all content from en.js and add corresponding translations.
config/constants.phpand add the new language in the “langs” array.
- If you add any new languages, please do share the files with us. We will include it in our updates. We will acknowledge you for adding any new language. Email us at: email@example.com . Thank you in advance.