WordPress / WordPress/pattern-directory

Pattern API: Return localized category names

Open
#530 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Component] Pattern Directory API
Dominant language
PHP
Stars
134
Forks
46
Avg merge
9h 4m
Merged PRs (30d)
19

Description

When loading patterns via the API, the patterns can be returned in the users's locale by passing a "locale" parameter. This does not work when trying to list categories — the http://api.wordpress.org/patterns/1.0/?categories endpoint always returns English names.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the handler for the http://api.wordpress.org/patterns/1.0/?categories endpoint and compare its locale handling with the pattern-list response. Request the categories endpoint with a locale parameter and verify that category names are returned in that locale rather than always in English.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.