In the context of T405000: Handle failure to load languages from cx server, the list of supported languages supported by CX was transitioned from query CX Server's /list/languagepairs endpoint to using an hardcoded list in the ContentTranslation extension.
Relatedly, the recommendation api's dependency on that same CX Server endpoint was replaced by using sitematrix.
Consider using sitematrix as the source of truth for the available Wikipedia languages. It should be noted that sitematrix uses wiki codes that are not always the same as the actual language code (no vs nb) but we already do code mapping throughout the system so it shouldn't be an issue.
Derived Requirement
Ensure that the CX dashboard and ContentTranslation interface correctly populate the list of supported languages without issues, using sitematrix as the source of truth, with proper language code mappings. This is for regression testing only.
Test Steps
Test Case 1: Regression – Supported Languages Populate Correctly in CX Dashboard and ContentTranslation
- Access the CX dashboard on the beta wiki and observe the list of supported languages.
- Open the ContentTranslation interface for creating a new translation and observe the target language dropdown.
- ✅❓❌⬜ AC1: Confirm that all supported Wikipedia languages appear correctly in both the dashboard and ContentTranslation interface, without any errors.
QA Results - TestWiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T409481#11424528 |