- 🇮🇹Italy gigiabba
Closing as duplicate of https://www.drupal.org/project/thron/issues/3531980 📌 Missing Preview languages added in according to ISO 639 Active
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.
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.
- 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.
- [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.
- 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.
- Internal API queries to Thron now use the configured preview language instead of the site's default language.
- None.
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Closing as duplicate of https://www.drupal.org/project/thron/issues/3531980 📌 Missing Preview languages added in according to ISO 639 Active