You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Blueprints] setSiteLanguage fetch translation package URL from WP.org (#81)
## Motivation for the change, related issues
Before this PR the `setSiteLanguage` step automatically tried to resolve
the WordPress core translation version, but some combinations of
versions and languages don't have translation packages.
This PR uses the WordPress.org translations API to get the correct
translation URL for the given WordPress version and language.
If a translation package doesn't exist, the step will still fail.
## Implementation details
Instead of inferring the WordPress version, `setSiteLanguage` now uses
the `api.wordpress.org/translations/core/1.0` endpoint to get the
correct translation URL for the given WordPress version and language.
This approach ensures we return an existing translation URL whenever
possible and moves the WP version resolution to the WordPress.org
translations API.
## Testing Instructions (or ideally a Blueprint)
- CI
0 commit comments