upload_form.php
Word Upload Form View
Displays a unified interface for importing terms via:
- Frequency word lists (with Wiktionary enrichment)
- Curated dictionary browser
- Manual upload (CSV/TSV file, paste, or dictionary file)
Expected variables:
- $currentLanguage: Current language setting (from settings)
- $languages: array - Array of languages for select dropdown
- $activeTab: string - Active tab ('frequency', 'dictionary', or 'manual')
- $curatedDictionaries: list<array<string, mixed>>|null - Curated dictionaries
- $isFrequencyAvailable: bool - Whether frequency data exists for current language
- $langId: int - Current language ID
- $currentLanguageName: string - Current language name
- $importUrl: string - AJAX endpoint for frequency word import
- $enrichUrl: string - AJAX endpoint for enrichment
- $csrfToken: string - CSRF token
PHP version 8.1