--- name: pf-i18n-audit description: Audit PatternFly React code for i18n readiness — hardcoded user-facing strings, concatenation anti-patterns, locale-dependent formatting, and RTL-unsafe CSS. Use when reviewing code for global deployment or auditing i18n compliance. --- # PF i18n Audit Audit PatternFly React components for internationalization readiness. All Red Hat products ship globally — OpenShift, HCC, and Ansible all require comprehensive i18n. This skill finds hardcoded strings, unsafe formatting, and RTL layout issues before they become translation bugs. ## PatternFly API documentation If PatternFly documentation tools are available, use them to verify component text props and layout behavior before flagging. Without documentation available, rely on the anti-pattern rules and tables in this skill. ## Input The user provides a directory, file path, or set of components to audit. Default to the current working directory. Limit scope to `.tsx`, `.jsx`, `.ts`, and `.css`/`.scss` files. ## What to audit ### 1. Hardcoded user-facing strings Flag string literals rendered in UI components that should be externalized for translation. **Flag these:** - String literals in PF text surfaces: `Title`, `Content`, `Alert` title, `EmptyState` titleText, `Label`, `Badge`, `Tooltip` content, `Button` children, `FormGroup` label, `HelperText` - String literals in HTML text elements: `

`, `

`, ``, `