{"library":"wp-textdomain","type":"library","category":null,"description":"A linting and fixing tool for WordPress plugin and theme textdomains in PHP files. Version 1.0.1 is latest. It scans PHP files using glob patterns and validates/replaces textdomain arguments in gettext functions like __, _e, _x, etc. Supports multiple domains in an array, automatic fixes (fix option), and custom keyword definitions. Key differentiators: specifically designed for WordPress, unlike general PHP linters; can fix missing or incorrect textdomains; configurable via options like engine (php-parser), variableDomain, and missingDomain.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install wp-textdomain","imports":["const wpTextdomain = require('wp-textdomain');","import wpTextdomain from 'wp-textdomain';"]},{"cmd":"yarn add wp-textdomain","imports":[]},{"cmd":"pnpm add wp-textdomain","imports":[]}],"homepage":null,"github":"https://github.com/timelsass/wp-textdomain","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/wp-textdomain","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}