How to change Language?

Changing Language in StudyBuddy

Landing Page Language

To change landing page language login in the super admin portal then navigate to Settings on the left sidebar and select your language. The selected language will be then be set for the landing page.

Backend Language

To change language navigate to Profile by clicking on name initial icon on the top right corner and select your language. The selected language will be set for user workspace.

Available Language

Currently, the software is translated into French, Italian, Portuguese(Br)

Language Files

Language files are located in app/resources/lang
Editing / Improving Language File
If you want to improve language files, find your language file in app/resources/lang folder & edit this file using any text editor. For example, to edit the french file, edit fr.json file.

Add New Language File

Following is a dummy example of adding French.
Step 1. Go to app/models/user.php and
Include your language like this ‘fr’ => ‘French’,
in the public static $available_languages = [
‘en’ => ‘English’,
‘it’ => ‘Italian’
‘fr’ => ‘French’,
];

Step 2. Create the language file manually by copying all the strings from en.json file or run the command

php artisan translatable:export en

en should be replaced by the name you used in the user.php file 

Step 3. Translate the file.

Now done, just navigate to the profile section, you should see your newly translated language.

Need help to you add your language? chat with us.

Can’t find the answers you’re looking for?

We’re here to help. Chat with us.