Documentation Index
Fetch the complete documentation index at: https://docs.lighton.ai/llms.txt
Use this file to discover all available pages before exploring further.
How to Add New Languages to the Platform
Prerequisites
To add new languages, you need one of the following roles:- System Administrator (SYS_ADMIN)
- Account Manager (ACCOUNT_MANAGER)
- Super Admin (SUPERADMIN)
Step-by-Step Guide
1. Access Django Admin
- Navigate to the platform’s admin panel
- Log in with your admin credentials
2. Navigate to Languages
- In the left sidebar, find the “Translations” section
- Click on “Languages”
3. Add a New Language
- Click the “Add Language” button in the top-right corner
-
Fill in the required fields:
Language Code (required)
- Enter the ISO 639-1 language code (2-3 letters) or chose it from the dropdown
- Examples:
es(Spanish),pt(Portuguese),it(Italian),zh(Chinese) - ⚠️ Must be unique - you cannot add the same code twice
- Enter the display name of the language
- Examples:
Spanish,Portuguese,Italian,Chinese - This is what users will see in the language selector
- Select the text direction:
- ltr (left-to-right) - For most languages like English, Spanish, French
- rtl (right-to-left) - For Arabic, Hebrew, Persian, Urdu
- ✅ Checked (default): Language appears in the platform
- ☐ Unchecked: Language is hidden from users (useful for testing)
- Click “Save” or “Save and add another”
4. Verify the Language Appears
- Navigate to your profile page
- Go to the Language dropdown in your profile settings
- Confirm the new language appears in the list
What Happens Automatically
Once you save a new language, the following happens automatically without any code deployment: ✅ Frontend:- Language appears in the profile page dropdown
- Text direction is automatically applied when the language is selected
- Language can be managed (edited/deleted) by authorized users
- All changes are immediately reflected
Adding Translation Strings
After adding a language, you need to provide translations for the UI strings:Method 1: Django Admin
- Go to Translations → Translation Strings
- Click “Add Translation String”
- Fill in:
- Language: Select your new language code
- Key: The translation key (e.g.,
common.save,profile.language) - Value: The translated text
- Click “Save”
Method 2: Import/Export (Bulk Upload)
- Go to Translations → Translation Strings
- Click the “Export” button to download existing translations as a template
- Add rows for your new language code
- Click “Import” to upload the file
- Format: CSV with columns
language,key,value
Managing Existing Languages
Editing a Language
- Go to Translations → Languages
- Click on the language you want to edit
- Make your changes
- Click “Save”
Deactivating a Language
To temporarily hide a language without deleting it:- Go to Translations → Languages
- Click on the language
- Uncheck the “Is Active” checkbox
- Click “Save”
Deleting a Language
- Go to Translations → Languages
- Select the language(s) to delete
- Choose “Delete selected languages” from the Actions dropdown
- Click “Go”
- Confirm the deletion