Endpoint
Request Body
GitHub repository URL or shorthand identifier. Accepts the following formats:
- Full URL:
https://github.com/owner/repo - Full URL with branch:
https://github.com/owner/repo/tree/branch - Shorthand:
owner/repo
Request Example
Response
Repository metadata
Information about the detected locale file structure
Comprehensive translation health report
Success Response Example
Error Responses
400 Bad Request
Missing or invalidrepo field in request body.
404 Not Found
Repository not found422 Unprocessable Entity
Source locale could not be parsed or is invalid.429 Too Many Requests
GitHub API rate limit exceeded. This occurs when making too many requests to the GitHub API without authentication.500 Internal Server Error
General server error or unexpected issue during scanning.Supported File Formats
The scanner automatically detects and parses locale files in the following formats:- JSON (
.json) - YAML (
.yaml,.yml) - Gettext PO (
.po)
Supported Directory Patterns
i18n Doctor searches for translation files in common directory structures: Standard directories:locales/,locale/i18n/lang/,languages/translations/messages/
public/locales/,public/locale/,public/i18n/src/locales/,src/locale/,src/i18n/,src/lang/,src/messages/,src/translations/app/i18n/assets/i18n/,assets/locales/
- Flat
- Nested
Files named with locale codes: