Missing Preview languages added in according to ISO 639

Created on 24 June 2025, 18 days ago

Problem/Motivation

The "Preview Language" selector in the Thron module configuration only displays a limited set of languages, missing many valid ISO 639-1 codes.
Additionally, when querying files from the Thron API, the module always uses the site's default language rather than the one selected in the "Preview Language" field, which leads to inconsistent or incorrect previews in multilingual setups.

Steps to reproduce

1. Navigate to the Thron module configuration page.
2. Open the "Preview Language" dropdown.
3. Notice that many expected languages (e.g., less commonly used ISO 639-1 codes) are missing.
4. Set a preview language different from the siteโ€™s default.
5. Perform a media preview โ€” observe that it still uses the siteโ€™s default language.

Proposed resolution

Replace the current "Preview Language" select element with an autocomplete input field to allow easier searching and selection of supported languages.
Populate the autocomplete with the full set of ISO 639-1 language codes.
Update the ThronAutocompleteController so that API queries use the language selected in the configuration, not the site default.

Remaining tasks

[x] Implement autocomplete input for language selection.
[x] Include full ISO 639-1 language list.
[x] Ensure API requests use the configured preview language.
[ ] Review and test patch.
[ ] Submit for merge.

User interface changes

The "Preview Language" field has been changed from a basic select dropdown to an autocomplete input for better usability.
All ISO 639-1 languages are now available for selection.

API changes

Internal API queries to Thron now use the configured preview language instead of the site's default language.

Data model changes

None.

๐Ÿ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly scerreto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024