Translate / Add New Language
This section explains how to:
- Create a new language
- Translate static texts
- Change the default application language
Creating a New Language
Follow the steps below:
- Log in to your Admin Panel
- Go to:
Settings → Languages- Click the Add Language button
- Fill in all required information
- Set the status to Public
- Click Save
Now your new language is created.
Translating Static Texts
After creating the language from the admin panel, you must translate the static files.
Follow these steps:
- Go to the root directory of your project
- Navigate to:
resources → langCopy the Sample folder
Rename the copied folder to the short code of your newly added language Example:
- English →
en - French →
fr - Arabic →
ar
- English →
Open and translate the following files inside your new language folder:
admin.jsonfrontend.jsonlang.php
Change Default Language (Optional)
If your default language is not English:
- Open the
.envfile from the root directory - Change the value of:
APP_LOCALE=your_language_codeExample:
APP_LOCALE=frSave the file.
Important Notice
⚠ Important If you want to modify the text of an existing language (English, Turkish, French, Arabic, Hindi), you must:
- Delete the language first from
Settings → Languages- Re-add the language
- Follow the translation process again