ExcelLingua is a powerful web application that converts Excel files (XLS/XLSX) containing translations into structured language files. It supports multiple languages and output formats, making it ideal for managing translation files in software development projects.
- Multi-file Upload: Upload multiple Excel files simultaneously
- Language Support: Currently supports English (en) and Turkish (tr) translations
- Output Formats: Convert to either JSON or PHP array format
- Structured Output: Creates organized language-specific directories
- User-Friendly Interface: Clean, modern UI with real-time file information
- Security Features:
- File type validation
- Size limits (5MB per file)
- XSS protection
- Secure file handling
- PHP 8.4.6 or higher
- Web server (Apache/Nginx)
- SimpleXLS and SimpleXLSX libraries (included in vendor directory)
- Modern web browser with JavaScript enabled
- Clone or download this repository
- Place the files in your web server directory
- Ensure the
vendordirectory is present - Make sure the
enandtrdirectories are writable by the web server
- Access the application through your web browser
- Click "Choose Files" to select Excel files
- Select your desired output format:
- "Convert to JSON" for JSON format
- "Convert to PHP Array" for PHP array format
- The converted files will be saved in their respective language directories
ExcelLingua/
├── index.php # Main interface
├── upload.php # File processing logic
├── vendor/ # Required libraries
├── en/ # English translations
└── tr/ # Turkish translations
Your Excel files should follow this structure:
- First row should contain headers (language codes)
- First column should contain translation keys
- Subsequent columns should contain translations for each language
Example:
| Key | en | tr |
|---|---|---|
| welcome | Welcome | Hoşgeldiniz |
| goodbye | Goodbye | Hoşçakalın |
- Maximum file size: 5MB
- Allowed file types: .xls, .xlsx
- Input sanitization
- XSS protection
- Secure file handling
This project is open-source and available under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.